contact = SugarTestContactUtilities::createContact(); } public function tearDown() { SugarTestContactUtilities::removeAllCreatedContacts(); SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); } /** * @group bug42279 */ public function testEmailAddressInFetchedRow() { $sea = new SugarEmailAddress(); // this will populate contact->email1 $sea->populateLegacyFields($this->contact); $email1 = $this->contact->email1; // this should set fetched_row['email1'] to contatc->email1 $sea->handleLegacyRetrieve($this->contact); $this->assertEquals($email1, $this->contact->fetched_row['email1']); } }