9 use Magento\PageCache\Test\Page\Adminhtml\AdminCache;
10 use Magento\Mtf\Constraint\AbstractConstraint;
22 private $cacheTypes = [
23 'block_html' =>
"Blocks HTML output",
35 $adminCache->getSystemMessageDialog()->closePopup();
36 foreach ($caches as $cacheType => $cacheStatus) {
37 if ($cacheStatus ===
'Invalidated') {
38 \PHPUnit\Framework\Assert::assertContains(
39 $this->cacheTypes[$cacheType],
40 $adminCache->getSystemMessageBlock()->getContent()
43 \PHPUnit\Framework\Assert::assertNotContains(
44 $this->cacheTypes[$cacheType],
45 $adminCache->getSystemMessageBlock()->getContent()
58 return 'Cache invalidate notice is correct.';
processAssert(AdminCache $adminCache, array $caches)