diff --git a/tests/Socialbox/AddressBookTest.php b/tests/Socialbox/AddressBookTest.php new file mode 100644 index 0000000..fbbfc7c --- /dev/null +++ b/tests/Socialbox/AddressBookTest.php @@ -0,0 +1,39 @@ +settingsAddInformationField(InformationFieldName::DISPLAY_NAME, 'John Doe'); + $johnClient->settingsSetPassword('SecretTestingPassword123'); + $this->assertTrue($johnClient->getSessionState()->isAuthenticated()); + + $aliceClient = Helper::generateRandomClient(COFFEE_DOMAIN, prefix: 'aliceAddressBookTest'); + $aliceClient->settingsAddInformationField(InformationFieldName::DISPLAY_NAME, 'Alice Smith'); + $aliceClient->settingsSetPassword('SecretTestingPassword123'); + $this->assertTrue($aliceClient->getSessionState()->isAuthenticated()); + + $johnClient->addressBookAddContact($aliceClient->getIdentifiedAs()); + $this->assertTrue($johnClient->addressBookContactExists($aliceClient->getIdentifiedAs())); + + $aliceClient->addressBookAddContact($johnClient->getIdentifiedAs()); + $this->assertTrue($aliceClient->addressBookContactExists($johnClient->getIdentifiedAs())); + } + } \ No newline at end of file