contact = SugarTestContactUtilities::createContact(); } public function tearDown() { SugarTestContactUtilities::removeAllCreatedContacts(); } /* * @group bug40739 */ public function testCreatedByNameOverride() { $this->contact->created_by = ''; $this->contact->created_by_name = 'admin'; $this->contact->fill_in_additional_detail_fields(); $this->assertTrue($this->contact->created_by_name == 'admin', "created_by_name shouldn't have been affected by a blank created_by value"); } }