getModules() public method

Returns modules
public getModules ( ) : array
return array
 /**
  * Checks whether the getModules() method returns the expected result.
  *
  * @return void
  * @todo
  */
 public function testGetModules()
 {
     // initialize the array with expected result
     $modules = array(new ModuleNode());
     // create a mock configuration instance
     $mockNode = $this->getMock('AppserverIo\\Appserver\\Core\\Api\\Node\\ServerNode', array('getModules'));
     $mockNode->expects($this->once())->method('getModules')->will($this->returnValue($modules));
     // initialize the server node
     $serverNode = new ServerNodeConfiguration($mockNode);
     // check the array with the modules data
     $this->assertSame($modules, $serverNode->getModules());
 }
 /**
  * Checks whether the getModules() method returns the expected result.
  *
  * @return void
  * @todo
  */
 public function testGetModules()
 {
     // initialize the array with expected result
     $modules = json_decode(file_get_contents(__DIR__ . '/Api/Node/_files/prepareModules.json'));
     // create a mock configuration instance
     $mockNode = $this->getMock('AppserverIo\\Appserver\\Core\\Api\\Node\\ServerNode', array('getModulesAsArray'));
     $mockNode->expects($this->once())->method('getModulesAsArray')->will($this->returnValue($modules));
     // initialize the server node
     $serverNode = new ServerNodeConfiguration($mockNode);
     // check the array with the modules data
     $this->assertSame($modules, $serverNode->getModules());
 }