3 class Bug40739Test extends Sugar_PHPUnit_Framework_TestCase
7 public function setUp()
9 $this->contact = SugarTestContactUtilities::createContact();
12 public function tearDown()
14 SugarTestContactUtilities::removeAllCreatedContacts();
20 public function testCreatedByNameOverride()
22 $this->contact->created_by = '';
23 $this->contact->created_by_name = 'admin';
24 $this->contact->fill_in_additional_detail_fields();
26 $this->assertTrue($this->contact->created_by_name == 'admin', "created_by_name shouldn't have been affected by a blank created_by value");