Ejemplo n.º 1
0
 public function test_Auth_SuccessfullyAuthenticatesSuperUser()
 {
     $_SERVER['PHP_AUTH_USER'] = self::TEST_SUPERUSER;
     $result = $this->auth->authenticate();
     $this->checkGordonAuthResult($result);
 }
Ejemplo n.º 2
0
 public function test_Auth_CorrectlyAuthenticatesSuperUser_IfUserIsInDb()
 {
     $_SERVER['PHP_AUTH_USER'] = self::TEST_SUPERUSER;
     $result = $this->auth->authenticate();
     $this->assertEquals(AuthResult::SUCCESS_SUPERUSER_AUTH_CODE, $result->getCode());
 }