/** * @covers Authentication::getAllAllows * @todo Implement testGetAllAllows(). */ public function testGetOtherExclusiveActions() { $aclxml = dirname(dirname(dirname(dirname(__FILE__)))) . '/testfiles/test_aclxml.xml'; Authentication::setAclXml($aclxml); $result = Authentication::getOtherExclusiveActions("test_module2"); $compare = array("register", "add", "sendemail"); $this->assertEquals($result[0], $compare[0]); $this->assertEquals($result[1], $compare[1]); $this->assertEquals($result[2], $compare[2]); }
/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ public function testSetUp() { $aclxml = dirname(dirname(dirname(dirname(__FILE__)))) . '/testfiles/test_aclxml.xml'; Authentication::setAclXml($aclxml); $this->object = new LoginForm("test_login_form", NULL, "account", "pwd", "test_module2", NULL, "successful", "http://test?abc"); }