name = "PHPUNIT test"; $acc->assigned_user_id = $GLOBALS['current_user']->id; $acc->sic_code = 'mnbvcxzasdfghjklpoiuytrewqmnbvcxzasdfghjklpoiuytre'; $acc->save(); $id = $acc->id; SugarTestAccountUtilities::setCreatedAccount(array($id)); $acc = new Account(); $acc->retrieve($id); $this->assertEquals('mnbvcxzasd', $acc->sic_code); $acc->sic_code = 'f094f59daaed0983a6a2e5913ddcc5fb'; $acc->save(); $acc = new Account(); $acc->retrieve($id); $this->assertEquals('f094f59daa', $acc->sic_code); } }