/** * Create New StoreGroup * * @param StoreGroup $storeGroup * @return void */ public function test(StoreGroup $storeGroup) { //Steps $this->storeIndex->open(); $this->storeIndex->getGridPageActions()->createStoreGroup(); $this->newGroupIndex->getEditFormGroup()->fill($storeGroup); $this->newGroupIndex->getFormPageActions()->save(); }
/** * Assert that Website visible on Store Group Form in Website dropdown * * @param StoreIndex $storeIndex * @param NewGroupIndex $newGroupIndex * @param Website $website * @return void */ public function processAssert(StoreIndex $storeIndex, NewGroupIndex $newGroupIndex, Website $website) { $websiteName = $website->getName(); $storeIndex->open()->getGridPageActions()->createStoreGroup(); \PHPUnit_Framework_Assert::assertTrue($newGroupIndex->getEditFormGroup()->isWebsiteVisible($websiteName), 'Website \'' . $websiteName . '\' is not present on Store Group Form in Website dropdown.'); }