Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
FlushAdditionalCachesTest.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\TestCase\Injectable;
10 use Magento\PageCache\Test\Page\Adminhtml\AdminCache;
11 
21 class FlushAdditionalCachesTest extends Injectable
22 {
23  /* tags */
24  const MVP = 'yes';
25  const SEVERITY = 'S2';
26  /* end tags */
27 
35  public function test(AdminCache $adminCache, $flushButtonName)
36  {
40  if (($flushButtonName === 'Flush Static Files Cache') && $_ENV['mage_mode'] === 'production') {
41  $this->markTestSkipped('Skip flushing static files cache test when in production mode.');
42  }
43  $adminCache->open();
44  $adminCache->getAdditionalBlock()->clickFlushCache($flushButtonName);
45  }
46 }