Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertStoreForm.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Backend\Test\Page\Adminhtml\StoreIndex;
10 use Magento\Backend\Test\Page\Adminhtml\StoreNew;
13 
19 {
28  public function processAssert(
29  StoreIndex $storeIndex,
30  StoreNew $storeNew,
31  Store $store
32  ) {
33  $storeIndex->open()->getStoreGrid()->searchAndOpenStore($store);
34  $formData = $storeNew->getStoreForm()->getData();
35  $fixtureData = $store->getData();
36  $errors = $this->verifyData($fixtureData, $formData);
37  \PHPUnit\Framework\Assert::assertEmpty($errors, $errors);
38  }
39 
45  public function toString()
46  {
47  return 'Store View data on edit page equals data from fixture.';
48  }
49 }
verifyData(array $fixtureData, array $formData, $isStrict=false, $isPrepareError=true)
processAssert(StoreIndex $storeIndex, StoreNew $storeNew, Store $store)
$errors
Definition: overview.phtml:9