/** * testing get globals method. */ public function testGetGlobals() { $result = $this->opitExtension->getGlobals(); $this->assertTrue(is_array($result), 'testGetFunctions: The result is not an array.'); $this->assertArrayHasKey('ldap_enabled', $result, 'testGetGlobals: Missing ldap_enabled array key.'); $this->assertArrayHasKey('security_roles', $result, 'testGetGlobals: Missing security_roles array key.'); }
/** * testing getName method. */ public function testFunctions() { $this->assertTrue(is_array($this->opitExtension->getFunctions()), 'GetFunctions: The given result is not an array.'); $this->assertArrayHasKey('convertCurrency', $this->opitExtension->getFunctions(), 'GetFunctions: Missing array key.'); }