Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertCmsPageFormSingleStoreMode.php
Go to the documentation of this file.
1 <?php
8 
10 use Magento\Cms\Test\Page\Adminhtml\CmsPageIndex;
11 use Magento\Cms\Test\Page\Adminhtml\CmsPageNew;
12 
17 {
26  public function processAssert(
27  CmsPage $cms,
28  CmsPageIndex $cmsIndex,
29  CmsPageNew $cmsPageNew
30  ) {
31  $cmsIndex->open();
32  $filter = ['title' => $cms->getTitle()];
33  $cmsIndex->getCmsPageGridBlock()->searchAndOpen($filter);
34 
35  $cmsFormData = $cmsPageNew->getPageForm()->getData($cms);
36  $cmsFixtureData = $cms->getData();
37  $errors = $this->verifyData($cmsFixtureData, $cmsFormData);
38  \PHPUnit\Framework\Assert::assertEmpty($errors, $errors);
39  }
40 }
processAssert(CmsPage $cms, CmsPageIndex $cmsIndex, CmsPageNew $cmsPageNew)
verifyData(array $fixtureData, array $formData, $isStrict=false, $isPrepareError=true)
$errors
Definition: overview.phtml:9