Etemplate - clear other set limits to avoid conflicts with other tests

This commit is contained in:
nathangray 2017-09-08 11:42:22 -06:00
parent 43f6acdf72
commit f9e09953d1

View File

@ -82,8 +82,9 @@ class IntegerTest extends \EGroupware\Api\Etemplate\WidgetBaseTest {
);
$result = $this->mockedExec($etemplate, $content, array(), array(), array());
// Only lowercase
// Set limits
$etemplate->getElementById('widget')->attrs['min'] = $min;
$etemplate->getElementById('widget')->attrs['max'] = null;
// Check for the load
$data = array();
@ -147,7 +148,8 @@ class IntegerTest extends \EGroupware\Api\Etemplate\WidgetBaseTest {
);
$result = $this->mockedExec($etemplate, $content, array(), array(), array());
// Only lowercase
// Set limits
$etemplate->getElementById('widget')->attrs['min'] = null;
$etemplate->getElementById('widget')->attrs['max'] = $max;
// Check for the load