Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
BundleQuantityTest.php
Go to the documentation of this file.
1 <?php
7 
9 
14 {
18  protected function createModel()
19  {
20  return $this->objectManager->getObject(BundleQuantity::class);
21  }
22 
26  public function testModifyMeta()
27  {
28  $sourceMeta = [
29  'testGroup' => [
30  'children' => [
32  'componentType' => 'testComponent',
33  ],
34  ]
35  ],
36  ];
37  $modifiedMeta = $this->getModel()->modifyMeta($sourceMeta);
38  $this->assertArrayHasKey(
40  $modifiedMeta['testGroup']['children'][BundleQuantity::CODE_QTY_CONTAINER]['children']
41  );
42  }
43 
47  public function testModifyData()
48  {
49  $expectedData = [];
50  $this->assertEquals($expectedData, $this->getModel()->modifyData($expectedData));
51  }
52 }