Beispiel #1
0
 public function testRead()
 {
     $modulesConfig = (include $this->_filePath . 'resources.php');
     $expectedResult = array('resourceName' => array('name' => 'resourceName', 'extends' => 'anotherResourceName'), 'otherResourceName' => array('name' => 'otherResourceName', 'connection' => 'connectionName'), 'defaultSetup' => array('name' => 'defaultSetup', 'connection' => 'customConnection'));
     $this->_fileResolverMock->expects($this->once())->method('get')->will($this->returnValue(array(file_get_contents($this->_filePath . 'resources.xml'))));
     $this->_converterMock->expects($this->once())->method('convert')->will($this->returnValue($modulesConfig));
     $this->assertEquals($expectedResult, $this->_model->read());
 }
Beispiel #2
0
 public function testResourcesXmlFiles()
 {
     $this->_model->read('global');
 }