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