コード例 #1
0
 public function testConvert()
 {
     $testDom = $this->_filePath . 'import.xml';
     $dom = new \DOMDocument();
     $dom->load($testDom);
     $expectedArray = (include $this->_filePath . 'import.php');
     $this->assertEquals($expectedArray, $this->_model->convert($dom));
 }
コード例 #2
0
 public function testConvertWithDisabledModules()
 {
     $testDom = $this->filePath . 'import.xml';
     $dom = new \DOMDocument();
     $dom->load($testDom);
     $notExpectedArray = (include $this->filePath . 'import.php');
     $this->moduleManager->expects($this->any())->method('isOutputEnabled')->willReturn(false);
     $this->assertNotEquals($notExpectedArray, $this->model->convert($dom));
 }