Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertResetFilterMessage.php
Go to the documentation of this file.
1 <?php
8 
12 class AssertResetFilterMessage extends \Magento\Mtf\Constraint\AbstractConstraint
13 {
20  public function processAssert(
21  \Magento\Catalog\Test\Page\Adminhtml\CatalogProductIndex $catalogProductIndex
22  ) {
23  \PHPUnit\Framework\Assert::assertContains(
24  'restored the filter to its original state',
25  $catalogProductIndex->getMessagesBlock()->getErrorMessage(),
26  "Can't find proper message"
27  );
28  }
29 
35  public function toString()
36  {
37  return 'Filters have been reset successfully.';
38  }
39 }
processAssert(\Magento\Catalog\Test\Page\Adminhtml\CatalogProductIndex $catalogProductIndex)