From 9f2ecd591d5be41bb9dc7b8a0fa144ac35a173bb Mon Sep 17 00:00:00 2001 From: wei <> Date: Mon, 9 Jan 2006 04:39:05 +0000 Subject: TRequiredFieldValidator works now. See FunctionalTests/index.php in your browser. --- .../pages/Validation/RequiredFieldValidator.php | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php (limited to 'tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php') diff --git a/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php b/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php new file mode 100644 index 00000000..3456dd40 --- /dev/null +++ b/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php @@ -0,0 +1,27 @@ +open(Prado::getApplication()->getTestPage(__FILE__)); + } + + function testValidator() + { + $this->assertTextPresent("Basic TRequiredFieldValidator Test1"); + $this->assertNotVisible("validator1"); + $this->click("button1"); + $this->assertVisible("validator1"); + $this->type("text1", "test"); + $this->clickAndWait("button1"); + $this->assertNotVisible("validator1"); + } +} + +?> \ No newline at end of file -- cgit v1.2.3