contact = SugarTestContactUtilities::createContact(); } protected function tearDown() { SugarTestContactUtilities::removeAllCreatedContacts(); SugarTestContactUtilities::removeCreatedContactsEmailAddresses(); SugarTestContactUtilities::removeCreatedContactsUsersRelationships(); SugarTestMeetingUtilities::removeAllCreatedMeetings(); SugarTestMeetingUtilities::removeMeetingContacts(); SugarTestMeetingUtilities::removeMeetingUsers(); SugarTestHelper::tearDown(); } /** * Ensure that saving relationship changes do not fail with fatal error and works fine * when saving relation field with type id * * @group 53516 */ public function testSaveRelationOnRelateFieldWithIdType() { $meeting = SugarTestMeetingUtilities::createMeeting(); $meeting->in_workflow = true; $meeting->not_use_rel_in_req = true; $meeting->contact_id = $meeting->new_rel_id = $this->contact->id; $meeting->new_rel_relname = 'contact_id'; $meeting->save_relationship_changes(false); } }