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

testShouldCompileDefenderTemplateHelpers() public method

Verify if blade is rendering defender directives.
    public function testShouldCompileDefenderTemplateHelpers()
    {
        $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->assertNotContains('@shield', $compiled);
        $this->assertNotContains('@is', $compiled);
        $this->assertNotContains('@endshield', $compiled);
        $this->assertNotContains('@endis', $compiled);
        $this->assertStringEqualsFile($expected, $compiled);
    }