/** * Assert that created Store Group can not be found in Stores grid by name * * @param StoreIndex $storeIndex * @param StoreGroup $storeGroup * @return void */ public function processAssert(StoreIndex $storeIndex, StoreGroup $storeGroup) { $storeGroupName = $storeGroup->getName(); $storeIndex->open()->getStoreGrid()->search(['group_title' => $storeGroupName]); \PHPUnit_Framework_Assert::assertFalse($storeIndex->getStoreGrid()->isStoreExists($storeGroupName), 'Store group \'' . $storeGroupName . '\' is present in grid.'); }
/** * Search and open appropriate Store. * * @param StoreGroup $storeGroup * @return void */ public function searchAndOpenStoreGroup(StoreGroup $storeGroup) { $storeGroupName = $storeGroup->getName(); $this->search(['group_title' => $storeGroupName]); $this->_rootElement->find(sprintf($this->storeName, $storeGroupName), Locator::SELECTOR_XPATH)->click(); }
/** * Assert that New Store Group visible on StoreView Form in Store dropdown * * @param StoreIndex $storeIndex * @param StoreNew $storeNew * @param StoreGroup $storeGroup * @return void */ public function processAssert(StoreIndex $storeIndex, StoreNew $storeNew, StoreGroup $storeGroup) { $storeGroupName = $storeGroup->getName(); $storeIndex->open()->getGridPageActions()->addStoreView(); \PHPUnit_Framework_Assert::assertTrue($storeNew->getStoreForm()->isStoreVisible($storeGroupName), 'Store Group \'' . $storeGroupName . '\' is not present on StoreView Form in Store dropdown.'); }
/** * Search and open appropriate store * * @param StoreGroup $storeGroup * @return void */ public function searchAndOpenStore(StoreGroup $storeGroup) { $storeName = $storeGroup->getName(); $this->search(['group_title' => $storeName]); $this->editStore($storeName); }