/** * Flush cache storage and assert success message. * * @return void */ protected function flushCacheStorageWithAssert() { $this->cachePage->open(); $this->cachePage->getActionsBlock()->flushCacheStorage(); $this->cachePage->getModalBlock()->acceptAlert(); \PHPUnit_Framework_Assert::assertTrue($this->cachePage->getActionsBlock()->isStorageCacheFlushed(), 'Cache is not flushed.'); }