Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CreateCmsBlockEntityTest.php
Go to the documentation of this file.
1 <?php
8 
10 
26 {
27  /* tags */
28  const MVP = 'yes';
29  const TEST_TYPE = 'extended_acceptance_test';
30  const SEVERITY = 'S1';
31  /* end tags */
32 
39  public function test(CmsBlock $cmsBlock)
40  {
41  // Prepare data for tearDown
42  $this->storeName = $cmsBlock->getStores();
43 
44  // Steps
45  $this->cmsBlockIndex->open();
46  $this->cmsBlockIndex->getGridPageActions()->addNew();
47  $this->cmsBlockNew->getCmsForm()->fill($cmsBlock);
48  $this->cmsBlockNew->getFormPageActions()->save();
49  }
50 }