summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php')
-rw-r--r--tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php31
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php b/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php
deleted file mode 100644
index 97ec656b..00000000
--- a/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-class RequiredFieldValidator extends TPage
-{
- public function onLoad($param)
- {
- if(!$this->IsPostBack)
- $this->dataBind();
- }
-}
-
-class RequiredFieldTestCase extends SeleniumTestCase
-{
- function setup()
- {
- $this->open(Prado::getApplication()->getTestPage(__FILE__));
- }
-
- function testValidator()
- {
- $this->assertTextPresent("Basic TRequiredFieldValidator Test1");
- $this->assertNotVisible("ctl0_Content_validator1");
- $this->click("ctl0_Content_button1");
- $this->assertVisible("ctl0_Content_validator1");
- $this->type("ctl0_Content_text1", "test");
- $this->clickAndWait("ctl0_Content_button1");
- $this->assertNotVisible("ctl0_Content_validator1");
- }
-}
-
-?> \ No newline at end of file