9 use Magento\PageCache\Test\Page\Adminhtml\AdminCache;
10 use Magento\Mtf\Constraint\AbstractConstraint;
27 if ($_ENV[
'mage_mode'] ===
'production') {
28 \PHPUnit\Framework\Assert::assertFalse(
29 $adminCache->getAdditionalBlock()->isFlushCacheButtonVisible(self::FLUSH_STATIC_FILES_CACHE),
30 self::FLUSH_STATIC_FILES_CACHE .
' button should not be visible in production mode.' 33 \PHPUnit\Framework\Assert::assertTrue(
34 $adminCache->getAdditionalBlock()->isFlushCacheButtonVisible(self::FLUSH_STATIC_FILES_CACHE),
35 self::FLUSH_STATIC_FILES_CACHE .
' button should be visible in developer or default mode.' 47 return self::FLUSH_STATIC_FILES_CACHE .
' button has correct visibility.';
const FLUSH_STATIC_FILES_CACHE
processAssert(AdminCache $adminCache)