mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-15 18:38:57 +01:00
Etemplate - fix causing false negatives in textbox regex text
This commit is contained in:
parent
2006b1f372
commit
4d68048929
@ -133,7 +133,7 @@ class TextboxTest extends \EGroupware\Api\Etemplate\WidgetBaseTest
|
|||||||
$result = $this->mockedExec($etemplate, $content, array(), array(), array());
|
$result = $this->mockedExec($etemplate, $content, array(), array(), array());
|
||||||
|
|
||||||
// Only lowercase
|
// Only lowercase
|
||||||
$etemplate->getElementById('widget')->attrs['validator'] = '/[a-z]*$/';
|
$etemplate->getElementById('widget')->attrs['validator'] = '/^[a-z]*$/';
|
||||||
|
|
||||||
// Check for the load
|
// Check for the load
|
||||||
$data = array();
|
$data = array();
|
||||||
@ -155,7 +155,7 @@ class TextboxTest extends \EGroupware\Api\Etemplate\WidgetBaseTest
|
|||||||
$content = static::$mocked_exec_result;
|
$content = static::$mocked_exec_result;
|
||||||
static::$mocked_exec_result = array();
|
static::$mocked_exec_result = array();
|
||||||
|
|
||||||
return $this->validateTest($content, array('widget' => $value), $error ? array('widget' => $error) : array());
|
return $this->validateTest($content, $error ? array() : array('widget' => $value), $error ? array('widget' => $error) : array());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function regexProvider()
|
public function regexProvider()
|
||||||
|
Loading…
Reference in New Issue
Block a user