Contao\CoreBundle\Test\Analyzer\HtaccessAnalyzerTest::testGrantsAccess PHP Method

testGrantsAccess() public method

Tests a file that grants access.
public testGrantsAccess ( )
    public function testGrantsAccess()
    {
        $file = new SplFileInfo($this->getRootDir() . '/system/modules/foobar/assets/.htaccess', 'system/modules/foobar/assets', 'system/modules/foobar/assets/.htaccess');
        $htaccess = new HtaccessAnalyzer($file);
        $this->assertTrue($htaccess->grantsAccess());
        $file = new SplFileInfo($this->getRootDir() . '/system/modules/foobar/html/.htaccess', 'system/modules/foobar/html', 'system/modules/foobar/html/.htaccess');
        $htaccess = new HtaccessAnalyzer($file);
        $this->assertTrue($htaccess->grantsAccess());
    }