diff options
Diffstat (limited to 'tests/unit/Web/UI/WebControls')
-rw-r--r-- | tests/unit/Web/UI/WebControls/TRequiredFieldValidatorTest.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/unit/Web/UI/WebControls/TRequiredFieldValidatorTest.php b/tests/unit/Web/UI/WebControls/TRequiredFieldValidatorTest.php index ae8ac1f5..e84b3cf3 100644 --- a/tests/unit/Web/UI/WebControls/TRequiredFieldValidatorTest.php +++ b/tests/unit/Web/UI/WebControls/TRequiredFieldValidatorTest.php @@ -10,7 +10,13 @@ class TRequiredFieldValidatorTest extends PHPUnit_Framework_TestCase { public function testGetEmptyInitialValue() { $validator = new TRequiredFieldValidator(); - $this->assertEquals('', $validator->getInitialValue()); + try { + $value = $validator->getInitialValue(); + } catch (TConfigurationException $e) { + //since prado 3.2.2 you need to set at least ControlToValidate + $value = ''; + } + $this->assertEquals('', $value); } } |