Пример #1
0
 public function testDoesNotSyncIfUserWasNotFoundInLdap()
 {
     $this->fakeLdap->_ExpectedLdapUser = null;
     $auth = new ActiveDirectory($this->fakeAuth, $this->fakeLdap, $this->fakeLdapOptions);
     $auth->Validate($this->username, $this->password);
     $auth->Login($this->username, $this->loginContext);
     $this->assertFalse($this->fakeRegistration->_SynchronizeCalled);
     $this->assertEquals($this->loginContext, $this->loginContext);
 }