/**
  * Run create search term test.
  *
  * @param CatalogSearchQuery $searchTerm
  * @return void
  */
 public function test(CatalogSearchQuery $searchTerm)
 {
     // Steps
     $this->indexPage->open();
     $this->indexPage->getGridPageActions()->addNew();
     $this->editPage->getForm()->fill($searchTerm);
     $this->editPage->getFormPageActions()->save();
 }
 /**
  * Assert that after save a search term on edit term search page displays:
  *  - correct Search Query field passed from fixture
  *  - correct Synonym For
  *  - correct Redirect URL
  *  - correct Display in Suggested Terms
  *
  * @param CatalogSearchIndex $indexPage
  * @param CatalogSearchEdit $editPage
  * @param CatalogSearchQuery $searchTerm
  * @return void
  */
 public function processAssert(CatalogSearchIndex $indexPage, CatalogSearchEdit $editPage, CatalogSearchQuery $searchTerm)
 {
     $indexPage->open()->getGrid()->searchAndOpen(['search_query' => $searchTerm->getQueryText()]);
     \PHPUnit_Framework_Assert::assertEquals($searchTerm->getData(), $editPage->getForm()->getData($searchTerm), 'This form "Search Term" does not match the fixture data.');
 }