Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
UpdateCmsBlockEntityTest.php
Go to the documentation of this file.
1 <?php
8 
10 
27 {
28  /* tags */
29  const MVP = 'yes';
30  const SEVERITY = 'S1';
31  /* end tags */
32 
40  public function test(CmsBlock $initialCmsBlock, CmsBlock $cmsBlock)
41  {
42  // Prepare data for tearDown
43  $this->storeName = $cmsBlock->getStores();
44 
45  // Precondition
46  $initialCmsBlock->persist();
47 
48  // Steps
49  $this->cmsBlockIndex->open();
50  $this->cmsBlockIndex->getCmsBlockGrid()->searchAndOpen(['identifier' => $initialCmsBlock->getIdentifier()]);
51  $this->cmsBlockNew->getCmsForm()->fill($cmsBlock);
52  $this->cmsBlockNew->getFormPageActions()->save();
53  }
54 }
test(CmsBlock $initialCmsBlock, CmsBlock $cmsBlock)