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