當前位置: 首頁>>代碼示例>>PHP>>正文


PHP StoreIndex::getStoreGrid方法代碼示例

本文整理匯總了PHP中Magento\Backend\Test\Page\Adminhtml\StoreIndex::getStoreGrid方法的典型用法代碼示例。如果您正苦於以下問題:PHP StoreIndex::getStoreGrid方法的具體用法?PHP StoreIndex::getStoreGrid怎麽用?PHP StoreIndex::getStoreGrid使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Magento\Backend\Test\Page\Adminhtml\StoreIndex的用法示例。


在下文中一共展示了StoreIndex::getStoreGrid方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: test

 /**
  * Runs Update Store Entity test
  *
  * @param Store $storeInitial
  * @param Store $store
  * @return void
  */
 public function test(Store $storeInitial, Store $store)
 {
     // Preconditions:
     $storeInitial->persist();
     // Steps:
     $this->storeIndex->open();
     $this->storeIndex->getStoreGrid()->searchAndOpenStore($storeInitial);
     $this->editStore->getStoreForm()->fill($store);
     $this->editStore->getFormPageActions()->save();
 }
開發者ID:kidaa30,項目名稱:magento2-platformsh,代碼行數:17,代碼來源:UpdateStoreEntityTest.php

示例2: test

 /**
  * Update New StoreGroup
  *
  * @param StoreGroup $storeGroupOrigin
  * @param StoreGroup $storeGroup
  * @return void
  */
 public function test(StoreGroup $storeGroupOrigin, StoreGroup $storeGroup)
 {
     //Preconditions
     $storeGroupOrigin->persist();
     //Steps
     $this->storeIndex->open();
     $this->storeIndex->getStoreGrid()->searchAndOpenStoreGroup($storeGroupOrigin);
     $this->editGroup->getEditFormGroup()->fill($storeGroup);
     $this->editGroup->getFormPageActions()->save();
 }
開發者ID:kidaa30,項目名稱:magento2-platformsh,代碼行數:17,代碼來源:UpdateStoreGroupEntityTest.php

示例3: test

 /**
  * Update Website
  *
  * @param Website $websiteOrigin
  * @param Website $website
  * @return array
  */
 public function test(Website $websiteOrigin, Website $website)
 {
     //Preconditions
     $websiteOrigin->persist();
     //Steps
     $this->storeIndex->open();
     $this->storeIndex->getStoreGrid()->searchAndOpenWebsite($websiteOrigin);
     $this->editWebsite->getEditFormWebsite()->fill($website);
     $this->editWebsite->getFormPageActions()->save();
     return ['website' => $this->mergeFixture($website, $websiteOrigin)];
 }
開發者ID:andrewhowdencom,項目名稱:m2onk8s,代碼行數:18,代碼來源:UpdateWebsiteEntityTest.php

示例4: test

 /**
  * Run Delete Store Entity test
  *
  * @param Store $store
  * @param string $createBackup
  * @return void
  */
 public function test(Store $store, $createBackup)
 {
     // Preconditions:
     $store->persist();
     $this->backupIndex->open()->getBackupGrid()->massaction([], 'Delete', true, 'Select All');
     // Steps:
     $this->storeIndex->open();
     $this->storeIndex->getStoreGrid()->searchAndOpenStore($store);
     $this->editStore->getFormPageActions()->delete();
     $this->storeDelete->getStoreForm()->fillForm(['create_backup' => $createBackup]);
     $this->storeDelete->getFormPageFooterActions()->delete();
 }
開發者ID:buskamuza,項目名稱:magento2-skeleton,代碼行數:19,代碼來源:DeleteStoreEntityTest.php

示例5: test

 /**
  * Delete Website
  *
  * @param Website $website
  * @param string $createBackup
  * @return void
  */
 public function test(Website $website, $createBackup)
 {
     //Preconditions
     $website->persist();
     $this->backupIndex->open()->getBackupGrid()->massaction([], 'Delete', true, 'Select All');
     //Steps
     $this->storeIndex->open();
     $this->storeIndex->getStoreGrid()->searchAndOpenWebsite($website);
     $this->editWebsite->getFormPageActions()->delete();
     $this->deleteWebsite->getDeleteWebsiteForm()->fillForm(['create_backup' => $createBackup]);
     $this->deleteWebsite->getFormPageActions()->delete();
 }
開發者ID:andrewhowdencom,項目名稱:m2onk8s,代碼行數:19,代碼來源:DeleteWebsiteEntityTest.php

示例6: tearDown

 /**
  * 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();
 }
開發者ID:andrewhowdencom,項目名稱:m2onk8s,代碼行數:18,代碼來源:UpdateCmsPageRewriteEntityTest.php

示例7: processAssert

 /**
  * 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.');
 }
開發者ID:andrewhowdencom,項目名稱:m2onk8s,代碼行數:13,代碼來源:AssertStoreGroupNotInGrid.php

示例8: processAssert

 /**
  * Assert that created Website can't be found in grid by name
  *
  * @param StoreIndex $storeIndex
  * @param Website $website
  * @return void
  */
 public function processAssert(StoreIndex $storeIndex, Website $website)
 {
     $websiteName = $website->getName();
     $storeIndex->open()->getStoreGrid()->search(['website_title' => $websiteName]);
     \PHPUnit_Framework_Assert::assertFalse($storeIndex->getStoreGrid()->isWebsiteExists($website), 'Website \'' . $websiteName . '\' is present in grid.');
 }
開發者ID:andrewhowdencom,項目名稱:m2onk8s,代碼行數:13,代碼來源:AssertWebsiteNotInGrid.php

示例9: processAssert

 /**
  * Assert that created Store View can be found in Stores grid by name
  *
  * @param StoreIndex $storeIndex
  * @param Store $store
  * @return void
  */
 public function processAssert(StoreIndex $storeIndex, Store $store)
 {
     $storeName = $store->getName();
     $storeIndex->open()->getStoreGrid()->search(['store_title' => $storeName]);
     \PHPUnit_Framework_Assert::assertTrue($storeIndex->getStoreGrid()->isStoreExists($storeName), 'Store \'' . $storeName . '\' is not present in grid.');
 }
開發者ID:kidaa30,項目名稱:magento2-platformsh,代碼行數:13,代碼來源:AssertStoreInGrid.php


注:本文中的Magento\Backend\Test\Page\Adminhtml\StoreIndex::getStoreGrid方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。