public function testMergeCompleteAndPartial() { $fileList = [file_get_contents(__DIR__ . '/_files/catalog_new_products_list.xml'), file_get_contents(__DIR__ . '/_files/orders_and_returns_customized.xml')]; $this->fileResolver->expects($this->once())->method('get')->with('widget.xml', 'global')->willReturn($fileList); $expected = (include __DIR__ . '/_files/expectedMergedArray.php'); $this->assertEquals($expected, $this->model->read('global')); }
public function testRead() { $result = $this->_model->read('global'); $expected = (include '_files/expectedGlobalArray.php'); $this->assertEquals($expected, $result); }