Artesaos\Defender\Testing\DefenderServiceProviderTest::testShouldNotCompileDefenderTemplateHelpers PHP Method

testShouldNotCompileDefenderTemplateHelpers() public method

Note: The service provider should not be register before that test.
    public function testShouldNotCompileDefenderTemplateHelpers()
    {
        $this->app['config']->set('defender.template_helpers', false);
        $this->app->register('Artesaos\\Defender\\Providers\\DefenderServiceProvider');
        $view = $this->stubsPath('views/defender.blade.txt');
        $expected = $this->stubsPath('views/defender.blade.output.txt');
        $compiled = Blade::compileString(file_get_contents($view));
        $this->assertNotEmpty($compiled);
        $this->assertContains('@shield', $compiled);
        $this->assertContains('@is', $compiled);
        $this->assertContains('@endshield', $compiled);
        $this->assertContains('@endis', $compiled);
        $this->assertStringNotEqualsFile($expected, $compiled);
    }