Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ScheduleDesignUpdateTest.php
Go to the documentation of this file.
1 <?php
7 
9 
14 {
18  protected function createModel()
19  {
20  return $this->objectManager->getObject(ScheduleDesignUpdate::class, [
21  'arrayManager' => $this->arrayManagerMock,
22  ]);
23  }
24 
25  public function testModifyMeta()
26  {
27  $this->arrayManagerMock->expects($this->any())
28  ->method('merge')
29  ->willReturnArgument(1);
30  $this->assertSame([], $this->getModel()->modifyMeta([]));
31  }
32 
33  public function testModifyData()
34  {
35  $this->assertSame(['data_key' => 'data_value'], $this->getModel()->modifyData(['data_key' => 'data_value']));
36  }
37 }