3 class Bug39780Test extends Sugar_PHPUnit_Framework_TestCase
7 public function setUp()
9 $this->contact = SugarTestContactUtilities::createContact();
12 public function tearDown()
14 SugarTestContactUtilities::removeAllCreatedContacts();
17 // Test unPopulateDefaultValues to make sure it doesn't generate any notices
21 public function testSugarBeanUnPopulateDefaultValues()
23 $this->contact->first_name = 'SadekDizzle';
24 $this->contact->field_defs['first_name']['default'] = 'SadekSnizzle';
26 $this->contact->unPopulateDefaultValues();
29 $this->assertTrue(false, "SugarBean->unPopulateDefaultValues is generating a notice/warning/fatal: " .$e->getMessage());
33 $this->assertTrue(true);