コード例 #1
0
 /**
  * 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.');
 }
コード例 #2
0
ファイル: StoreGrid.php プロジェクト: andrewhowdencom/m2onk8s
 /**
  * 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();
 }
コード例 #3
0
 /**
  * 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.');
 }
コード例 #4
0
ファイル: StoreGrid.php プロジェクト: aiesh/magento2
 /**
  * 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);
 }