/** * Assert that displayed Catalog Price Rule data on edit page equals passed from fixture. * * @param CatalogRule $catalogPriceRule * @param CatalogRuleIndex $pageCatalogRuleIndex * @param CatalogRuleEdit $catalogRuleEdit * @return void */ public function processAssert(CatalogRule $catalogPriceRule, CatalogRuleIndex $pageCatalogRuleIndex, CatalogRuleEdit $catalogRuleEdit) { $filter['name'] = $catalogPriceRule->getName(); $pageCatalogRuleIndex->open(); $pageCatalogRuleIndex->getCatalogRuleGrid()->searchAndOpen($filter); $formData = $this->prepareFormData($catalogRuleEdit->getEditForm()->getData($catalogPriceRule)); $fixtureData = $this->prepareFixtureData($catalogPriceRule->getData()); $diff = $this->verifyData($formData, $fixtureData); \PHPUnit_Framework_Assert::assertEmpty($diff, $diff); }