]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/include/SugarFields/Fields/Float/Bug38424FloatTest.php
Release 6.3.0beta5
[Github/sugarcrm.git] / tests / include / SugarFields / Fields / Float / Bug38424FloatTest.php
1 <?php
2 require_once('include/SugarFields/Fields/Float/SugarFieldFloat.php');
3
4 class Bug38424FloatTest extends Sugar_PHPUnit_Framework_TestCase
5 {
6     private $_fieldOutput;
7
8     public function setUp()
9     {
10         $sfr = new SugarFieldFloat('float');
11         $vardef = array(
12             'len' => '10',
13         );
14         $this->_fieldOutput = $sfr->getEditViewSmarty(array(), $vardef, array(), 1);
15     }
16
17     
18     public function testMaxLength()
19     {
20         $this->assertContains('maxlength=\'10\'', $this->_fieldOutput);
21     }
22 }