Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DeleteAllSynonymGroupsStep.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\TestStep\TestStepInterface;
10 use Magento\Search\Test\Page\Adminhtml\SynonymGroupIndex;
11 
15 class DeleteAllSynonymGroupsStep implements TestStepInterface
16 {
22  private $synonymGroupIndex;
23 
27  public function __construct(SynonymGroupIndex $synonymGroupIndex)
28  {
29  $this->synonymGroupIndex = $synonymGroupIndex;
30  }
31 
37  public function run()
38  {
39  $this->synonymGroupIndex->open();
40  $this->synonymGroupIndex->getSynonymGroupGrid()->resetFilter();
41  $this->synonymGroupIndex->getSynonymGroupGrid()->massaction([], 'Delete', true, 'Select All');
42  }
43 }