From f9e09953d177c35b74cecf81fbbf9e3fd5ac6c23 Mon Sep 17 00:00:00 2001 From: nathangray Date: Fri, 8 Sep 2017 11:42:22 -0600 Subject: [PATCH] Etemplate - clear other set limits to avoid conflicts with other tests --- api/src/Etemplate/Widget/test/IntegerTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/src/Etemplate/Widget/test/IntegerTest.php b/api/src/Etemplate/Widget/test/IntegerTest.php index 83d2ee6400..3844cb432a 100644 --- a/api/src/Etemplate/Widget/test/IntegerTest.php +++ b/api/src/Etemplate/Widget/test/IntegerTest.php @@ -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