Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertStoreBackend.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Backend\Test\Page\Adminhtml\SystemConfig;
11 use Magento\Mtf\Constraint\AbstractConstraint;
12 
17 class AssertStoreBackend extends AbstractConstraint
18 {
26  public function processAssert(Store $store, SystemConfig $systemConfig)
27  {
28  $systemConfig->open();
29  $isStoreVisible = $systemConfig->getPageActions()->isStoreVisible($store);
30  \PHPUnit\Framework\Assert::assertTrue($isStoreVisible, "Store view is not visible in dropdown on config page");
31  }
32 
38  public function toString()
39  {
40  return 'Store View is available in backend configuration (Stores > Configuration > "Scope" dropdown)';
41  }
42 }
processAssert(Store $store, SystemConfig $systemConfig)