summaryrefslogtreecommitdiff
path: root/tests/unit/Web/UI
diff options
context:
space:
mode:
authorCiro Mattia Gonano <ciromattia@gmail.com>2013-09-11 15:56:48 +0200
committerCiro Mattia Gonano <ciromattia@gmail.com>2013-09-11 15:57:07 +0200
commit3069eaf35e833ffe4a1c1c7829dd7e168ae27420 (patch)
treed0c2e4d934cc34ba7d4232f759923b5a257dcb21 /tests/unit/Web/UI
parentb833247ce597ec26159b46c8dfbea7f1e265950b (diff)
Merge up to r3319
Diffstat (limited to 'tests/unit/Web/UI')
-rw-r--r--tests/unit/Web/UI/WebControls/TRequiredFieldValidatorTest.php8
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);
}
}