Bolt\Tests\Nut\CacheClearTest::testSuccessfulClear PHP Метод

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

public testSuccessfulClear ( )
    public function testSuccessfulClear()
    {
        $app = $this->getApp();
        $app['cache'] = $this->getMockCache();
        $command = new CacheClear($app);
        $tester = new CommandTester($command);
        $tester->execute([]);
        $result = $tester->getDisplay();
        $this->assertRegExp('/Cache cleared/', $result);
    }