/** * Assert that displayed Store View data on edit page equals passed from fixture * * @param StoreIndex $storeIndex * @param StoreNew $storeNew * @param Store $store * @return void */ public function processAssert(StoreIndex $storeIndex, StoreNew $storeNew, Store $store) { $storeIndex->open()->getStoreGrid()->searchAndOpenStore($store); $formData = $storeNew->getStoreForm()->getData(); $fixtureData = $store->getData(); $errors = $this->verifyData($fixtureData, $formData); \PHPUnit_Framework_Assert::assertEmpty($errors, $errors); }
/** * Runs Test Creation for StoreEntityTest * * @param Store $store * @return void */ public function test(Store $store) { //Steps: $this->storeIndex->open(); $this->storeIndex->getGridPageActions()->addStoreView(); $this->storeNew->getStoreForm()->fill($store); $this->storeNew->getFormPageActions()->save(); }
/** * Runs Test Creation for StoreEntityTest * * @param Store $store * @return void */ public function test(Store $store) { $this->markTestIncomplete('MAGETWO-48723'); //Steps: $this->storeIndex->open(); $this->storeIndex->getGridPageActions()->addStoreView(); $this->storeNew->getStoreForm()->fill($store); $this->storeNew->getFormPageActions()->save(); }
/** * Delete Store after test. * * @return void|null */ public function tearDown() { if (in_array($this->storeName, $this->skippedStores)) { return; } $storeName = explode("/", $this->storeName); $filter['store_title'] = end($storeName); $this->storeIndex->open(); $this->storeIndex->getStoreGrid()->searchAndOpen($filter); $this->storeNew->getFormPageActions()->delete(); $this->storeDelete->getStoreForm()->fillForm(['create_backup' => 'No']); $this->storeDelete->getFormPageActions()->delete(); }
/** * 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.'); }