/** * 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) { $storeIndex->open(); $storeGroupName = $storeGroup->getName(); $storeIndex->getGridPageActions()->addStoreView(); \PHPUnit_Framework_Assert::assertTrue($storeNew->getStoreForm()->isStoreVisible($storeGroupName), "Store Group '{$storeGroupName}' is not present on StoreView Form in Store dropdown."); }
/** * Create website from admin panel. * * @param Website $website * @return Website */ protected function createWebsite(Website $website) { $this->storeIndex->getGridPageActions()->createWebsite(); $this->newWebsite->getWebsiteForm()->fill($website); $this->newWebsite->getFormPageActions()->save(); return $this->prepareWebsite($website); }
/** * Create new StoreGroup. * * @param StoreGroup $storeGroup * @return void */ public function test(StoreGroup $storeGroup) { $this->storeGroup = $storeGroup; //Steps $this->storeIndex->open(); $this->storeIndex->getGridPageActions()->createStoreGroup(); $this->newStoreGroup->getEditFormStoreGroup()->fill($storeGroup); $this->newStoreGroup->getFormPageActions()->save(); }
/** * Run CreateStoreEntity test. * * @param Store $store * @param ConfigData $config * @return void */ public function test(Store $store, ConfigData $config) { // Preconditions $this->store = $store; $config->persist(); // Steps $this->storeIndex->open(); $this->storeIndex->getGridPageActions()->addStoreView(); $this->storeNew->getStoreForm()->fill($store); $this->storeNew->getFormPageActions()->save(); }