public function testListAddressBooksForContact() { $contact = array('Email' => '*****@*****.**', 'AudienceType' => 'B2B', 'OptInType' => 'Single', 'EmailType' => 'Html', 'Notes' => 'This is an API test contact'); $result = $this->object->ListAddressBooksForContact($contact); $this->assertFalse($result); $fields = array('FIRSTNAME' => 'John', 'LASTNAME' => 'Test'); $this->object->AddContactToAddressBook($contact, $fields, $this->addressBookId); $result = $this->object->ListAddressBooksForContact($contact); $this->assertTrue(gettype($result) == 'object'); $this->assertTrue($result->ID == $this->addressBookId); }