Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertSearchTermMassActionNotOnFrontend.php
Go to the documentation of this file.
1 <?php
8 
10 use Magento\Cms\Test\Page\CmsIndex;
11 use Magento\Mtf\Client\BrowserInterface;
12 use Magento\Mtf\Constraint\AbstractConstraint;
13 
18 class AssertSearchTermMassActionNotOnFrontend extends AbstractConstraint
19 {
29  public function processAssert(
30  array $searchTerms,
31  CmsIndex $cmsIndex,
32  BrowserInterface $browser,
33  AssertSearchTermNotOnFrontend $assertSearchTermNotOnFrontend
34  ) {
35  foreach ($searchTerms as $term) {
37  $assertSearchTermNotOnFrontend->processAssert($cmsIndex, $browser, $term);
38  }
39  }
40 
46  public function toString()
47  {
48  return 'All search terms were successfully removed (redirects to the specified URL was not performed).';
49  }
50 }
processAssert(CmsIndex $cmsIndex, BrowserInterface $browser, CatalogSearchQuery $searchTerm)