Add additional assertions for session state in SocialClientRegistrationTest
This commit is contained in:
parent
a7d4e6c2e3
commit
8046b8a8a2
1 changed files with 5 additions and 1 deletions
|
@ -76,14 +76,16 @@
|
||||||
$this->assertFalse($rpcClient->getSessionState()->isAuthenticated());
|
$this->assertFalse($rpcClient->getSessionState()->isAuthenticated());
|
||||||
$this->assertTrue($rpcClient->getSessionState()->containsFlag(SessionFlags::AUTHENTICATION_REQUIRED));
|
$this->assertTrue($rpcClient->getSessionState()->containsFlag(SessionFlags::AUTHENTICATION_REQUIRED));
|
||||||
$this->assertTrue($rpcClient->getSessionState()->containsFlag(SessionFlags::VER_PASSWORD));
|
$this->assertTrue($rpcClient->getSessionState()->containsFlag(SessionFlags::VER_PASSWORD));
|
||||||
|
$this->assertFalse($rpcClient->getSessionState()->isAuthenticated());
|
||||||
|
|
||||||
$this->assertFalse($rpcClient->verificationPasswordAuthentication('IncorrectPassword'));
|
$this->assertFalse($rpcClient->verificationPasswordAuthentication('IncorrectPassword'));
|
||||||
$this->assertTrue($rpcClient->getSessionState()->containsFlag(SessionFlags::AUTHENTICATION_REQUIRED));
|
$this->assertTrue($rpcClient->getSessionState()->containsFlag(SessionFlags::AUTHENTICATION_REQUIRED));
|
||||||
$this->assertTrue($rpcClient->getSessionState()->containsFlag(SessionFlags::VER_PASSWORD));
|
$this->assertTrue($rpcClient->getSessionState()->containsFlag(SessionFlags::VER_PASSWORD));
|
||||||
|
$this->assertFalse($rpcClient->getSessionState()->isAuthenticated());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws DatabaseOperationException
|
* @throws DatabaseOperationException`
|
||||||
* @throws ResolutionException
|
* @throws ResolutionException
|
||||||
* @throws CryptographyException
|
* @throws CryptographyException
|
||||||
* @throws RpcException
|
* @throws RpcException
|
||||||
|
@ -100,9 +102,11 @@
|
||||||
$this->assertFalse($rpcClient->getSessionState()->isAuthenticated());
|
$this->assertFalse($rpcClient->getSessionState()->isAuthenticated());
|
||||||
$this->assertTrue($rpcClient->getSessionState()->containsFlag(SessionFlags::AUTHENTICATION_REQUIRED));
|
$this->assertTrue($rpcClient->getSessionState()->containsFlag(SessionFlags::AUTHENTICATION_REQUIRED));
|
||||||
$this->assertTrue($rpcClient->getSessionState()->containsFlag(SessionFlags::VER_PASSWORD));
|
$this->assertTrue($rpcClient->getSessionState()->containsFlag(SessionFlags::VER_PASSWORD));
|
||||||
|
$this->assertFalse($rpcClient->getSessionState()->isAuthenticated());
|
||||||
|
|
||||||
$this->assertTrue($rpcClient->verificationPasswordAuthentication('SecuredTestingPassword123'));
|
$this->assertTrue($rpcClient->verificationPasswordAuthentication('SecuredTestingPassword123'));
|
||||||
$this->assertFalse($rpcClient->getSessionState()->containsFlag(SessionFlags::AUTHENTICATION_REQUIRED));
|
$this->assertFalse($rpcClient->getSessionState()->containsFlag(SessionFlags::AUTHENTICATION_REQUIRED));
|
||||||
$this->assertFalse($rpcClient->getSessionState()->containsFlag(SessionFlags::VER_PASSWORD));
|
$this->assertFalse($rpcClient->getSessionState()->containsFlag(SessionFlags::VER_PASSWORD));
|
||||||
|
$this->assertTrue($rpcClient->getSessionState()->isAuthenticated());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue