Redaxscript\Tests\Console\Command\CacheTest::testClear PHP Method

testClear() public method

testClear
Since: 3.0.0
public testClear ( )
    public function testClear()
    {
        /* setup */
        $this->_request->setServer('argv', ['console.php', 'cache', 'clear', '--directory', 'cache/styles', '--bundle', 'base.min.css']);
        $cacheCommand = new Command\Cache($this->_registry, $this->_request, $this->_config);
        /* actual */
        $actual = $cacheCommand->run('cli');
        /* compare */
        $this->assertEquals('cache/styles', $actual->getDirectory());
    }