Contao\CoreBundle\Test\Cache\ContaoCacheClearerTest::testClear PHP Method

testClear() public method

Tests the clear() method.
public testClear ( )
    public function testClear()
    {
        $fs = new Filesystem();
        $cacheDir = $this->getCacheDir();
        $fs->mkdir("{$cacheDir}/contao/config");
        $this->assertFileExists("{$cacheDir}/contao/config");
        $clearer = new ContaoCacheClearer($fs);
        $clearer->clear($cacheDir);
        $this->assertFileNotExists("{$cacheDir}/contao/config");
    }