first_name = "Josh"; $contact->last_name = "Chi"; $contact->salutation = "Mr"; $contact->title = 'VP Operations'; $contact->disable_row_level_security = true; $contact_id = $contact->save(); $note = new Note(); $note->contact_id = $contact_id; $note->disable_row_level_security = true; $note->fill_in_additional_detail_fields(); $this->assertContains($contact->first_name,$note->contact_name); $this->assertContains($contact->last_name,$note->contact_name); $GLOBALS['db']->query('DELETE FROM contacts WHERE id =\''.$contact_id.'\''); } }