2 require_once('modules/DynamicFields/FieldCases.php');
5 class Bug39766Test extends Sugar_PHPUnit_Framework_TestCase
10 public function testFloatPrecisionMapping()
12 $_REQUEST = array('precision' => 2, 'type' => 'float');
13 require_once ('modules/DynamicFields/FieldCases.php') ;
14 $field = get_widget ( $_REQUEST [ 'type' ] ) ;
15 $field->populateFromPost () ;
17 $this->assertEquals($field->ext1, 2, 'Asserting that the ext1 value was set to the proper precision');
18 $this->assertEquals($field->precision, 2, 'Asserting that the precision value was set to the proper precision');