本文整理汇总了PHP中Magento\Backend\Test\Page\Adminhtml\StoreIndex类的典型用法代码示例。如果您正苦于以下问题:PHP StoreIndex类的具体用法?PHP StoreIndex怎么用?PHP StoreIndex使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了StoreIndex类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: processAssert
/**
* Assert that displayed Store Group data on edit page equals passed from fixture
*
* @param StoreIndex $storeIndex
* @param EditGroup $editGroup
* @param StoreGroup $storeGroup
* @param StoreGroup $storeGroupOrigin [optional]
* @return void
*/
public function processAssert(StoreIndex $storeIndex, EditGroup $editGroup, StoreGroup $storeGroup, StoreGroup $storeGroupOrigin = null)
{
$fixtureData = $storeGroupOrigin != null ? array_merge($storeGroupOrigin->getData(), $storeGroup->getData()) : $storeGroup->getData();
$storeIndex->open()->getStoreGrid()->searchAndOpenStoreGroup($storeGroup);
$formData = $editGroup->getEditFormGroup()->getData();
$errors = $this->verifyData($fixtureData, $formData);
\PHPUnit_Framework_Assert::assertEmpty($errors, $errors);
}
开发者ID:kidaa30,项目名称:magento2-platformsh,代码行数:17,代码来源:AssertStoreGroupForm.php
示例2: processAssert
/**
* Assert that displayed Website data on edit page equals passed from fixture
*
* @param StoreIndex $storeIndex
* @param EditWebsite $editWebsite
* @param Website $website
* @return void
*/
public function processAssert(StoreIndex $storeIndex, EditWebsite $editWebsite, Website $website)
{
$fixtureData = $website->getData();
$storeIndex->open()->getStoreGrid()->searchAndOpenWebsite($website);
$formData = $editWebsite->getEditFormWebsite()->getData();
$errors = $this->verifyData($fixtureData, $formData);
\PHPUnit_Framework_Assert::assertEmpty($errors, $errors);
}
开发者ID:andrewhowdencom,项目名称:m2onk8s,代码行数:16,代码来源:AssertWebsiteForm.php
示例3: processAssert
/**
* 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);
}
开发者ID:kidaa30,项目名称:magento2-platformsh,代码行数:16,代码来源:AssertStoreForm.php
示例4: processAssert
/**
* Assert that success messages is displayed after deleting website
*
* @param StoreIndex $storeIndex
* @return void
*/
public function processAssert(StoreIndex $storeIndex)
{
$actualMessages = $storeIndex->getMessagesBlock()->getSuccessMessages();
\PHPUnit_Framework_Assert::assertTrue(in_array(self::SUCCESS_BACKUP_MESSAGE, $actualMessages) && in_array(self::SUCCESS_DELETE_MESSAGE, $actualMessages), 'Wrong success messages are displayed.');
}
开发者ID:andrewhowdencom,项目名称:m2onk8s,代码行数:11,代码来源:AssertWebsiteSuccessDeleteAndBackupMessages.php
示例5: processAssert
/**
* Assert that success message is displayed after Store View has been created
*
* @param StoreIndex $storeIndex
* @return void
*/
public function processAssert(StoreIndex $storeIndex)
{
\PHPUnit_Framework_Assert::assertEquals(self::SUCCESS_MESSAGE, $storeIndex->getMessagesBlock()->getSuccessMessages(), 'Wrong success message is displayed.');
}
开发者ID:buskamuza,项目名称:magento2-skeleton,代码行数:10,代码来源:AssertStoreSuccessSaveMessage.php
示例6: 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
示例7: 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
示例8: 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
示例9: processAssert
/**
* 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.');
}
开发者ID:andrewhowdencom,项目名称:m2onk8s,代码行数:14,代码来源:AssertWebsiteOnStoreForm.php
示例10: processAssert
/**
* 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.');
}
开发者ID:aiesh,项目名称:magento2,代码行数:14,代码来源:AssertStoreGroupOnStoreViewForm.php
示例11: test
/**
* 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();
}
开发者ID:buskamuza,项目名称:magento2-skeleton,代码行数:14,代码来源:CreateStoreEntityTest.php
示例12: test
/**
* 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();
}
开发者ID:andrewhowdencom,项目名称:m2onk8s,代码行数:14,代码来源:CreateStoreGroupEntityTest.php
示例13: test
/**
* Create Website
*
* @param Website $website
* @return void
*/
public function test(Website $website)
{
//Steps
$this->storeIndex->open();
$this->storeIndex->getGridPageActions()->addNew();
$this->newWebsiteIndex->getEditWebsiteForm()->fill($website);
$this->newWebsiteIndex->getFormPageActions()->save();
}
开发者ID:buskamuza,项目名称:magento2-skeleton,代码行数:14,代码来源:CreateWebsiteEntityTest.php
示例14: test
/**
* 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();
}
开发者ID:BlackIkeEagle,项目名称:magento2-continuousphp,代码行数:15,代码来源:CreateStoreEntityTest.php
示例15: 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
示例16: 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
示例17: 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
示例18: 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
示例19: 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
示例20: 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
注:本文中的Magento\Backend\Test\Page\Adminhtml\StoreIndex类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论