Added tests for password deletion and OTP settings in AddressBookTest and SettingsTest
This commit is contained in:
parent
3c151bfd99
commit
df519ad89b
2 changed files with 47 additions and 4 deletions
|
@ -688,12 +688,14 @@
|
|||
public function testCaseInsensitiveContactAddress(): void
|
||||
{
|
||||
$johnClient = Helper::generateRandomClient(TEAPOT_DOMAIN, prefix: 'johnCaseTest');
|
||||
$johnClient->settingsAddInformationField(InformationFieldName::DISPLAY_NAME, 'John Doe');
|
||||
$johnClient->settingsSetPassword('SecretTestingPassword123');
|
||||
$this->assertTrue($johnClient->settingsAddInformationField(InformationFieldName::DISPLAY_NAME, 'John Doe'));
|
||||
$this->assertTrue($johnClient->settingsSetPassword('SecretTestingPassword123'));
|
||||
$this->assertTrue($johnClient->getSessionState()->isAuthenticated());
|
||||
|
||||
$aliceClient = Helper::generateRandomClient(COFFEE_DOMAIN, prefix: 'aliceCaseTest');
|
||||
$aliceClient->settingsAddInformationField(InformationFieldName::DISPLAY_NAME, 'Alice Smith');
|
||||
$aliceClient->settingsSetPassword('SecretTestingPassword123');
|
||||
$this->assertTrue($aliceClient->settingsAddInformationField(InformationFieldName::DISPLAY_NAME, 'Alice Smith'));
|
||||
$this->assertTrue($aliceClient->settingsSetPassword('SecretTestingPassword123'));
|
||||
$this->assertTrue($aliceClient->getSessionState()->isAuthenticated());
|
||||
$aliceAddress = $aliceClient->getIdentifiedAs();
|
||||
$mixedCaseAddress = ucfirst(strtolower($aliceAddress->getUsername())).'@'.strtoupper($aliceAddress->getDomain());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue