Redaxscript\Tests\Console\Command\CacheTest::testClearInvalid PHP Метод

testClearInvalid() публичный Метод

testClearInvalid
С версии: 3.0.0
public testClearInvalid ( )
    public function testClearInvalid()
    {
        /* setup */
        $this->_request->setServer('argv', ['console.php', 'cache', 'clear-invalid', '--directory', 'cache/page', '--lifetime', '3600']);
        $cacheCommand = new Command\Cache($this->_registry, $this->_request, $this->_config);
        /* actual */
        $actual = $cacheCommand->run('cli');
        /* compare */
        $this->assertEquals('cache/page', $actual->getDirectory());
    }