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.
---
tests/FunctionalTests/protected/application.xml | 4 +--
.../pages/Validation/RequiredFieldValidator.page | 7 ++++++
.../pages/Validation/RequiredFieldValidator.php | 27 +++++++++++++++++++++
.../FunctionalTests/protected/runtime/config.cache | Bin 2357 -> 0 bytes
.../FunctionalTests/protected/runtime/global.cache | 1 -
5 files changed, 36 insertions(+), 3 deletions(-)
create mode 100644 tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.page
create mode 100644 tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php
delete mode 100644 tests/FunctionalTests/protected/runtime/config.cache
delete mode 100644 tests/FunctionalTests/protected/runtime/global.cache
(limited to 'tests/FunctionalTests')
diff --git a/tests/FunctionalTests/protected/application.xml b/tests/FunctionalTests/protected/application.xml
index fe17e3c0..53e73457 100644
--- a/tests/FunctionalTests/protected/application.xml
+++ b/tests/FunctionalTests/protected/application.xml
@@ -11,8 +11,8 @@
-
-
+
+
\ No newline at end of file
diff --git a/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.page b/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.page
new file mode 100644
index 00000000..4c9a8cd3
--- /dev/null
+++ b/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.page
@@ -0,0 +1,7 @@
+
+Basic TRequiredFieldValidator Test1
+
+
+
+
+
\ No newline at end of file
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
diff --git a/tests/FunctionalTests/protected/runtime/config.cache b/tests/FunctionalTests/protected/runtime/config.cache
deleted file mode 100644
index 890ff3da..00000000
Binary files a/tests/FunctionalTests/protected/runtime/config.cache and /dev/null differ
diff --git a/tests/FunctionalTests/protected/runtime/global.cache b/tests/FunctionalTests/protected/runtime/global.cache
deleted file mode 100644
index c0bf9e01..00000000
--- a/tests/FunctionalTests/protected/runtime/global.cache
+++ /dev/null
@@ -1 +0,0 @@
-a:1:{s:35:"prado:pagestatepersister:privatekey";s:32:"7ff407291c6929ec690bdf57a2dd1a7d";}
\ No newline at end of file
--
cgit v1.2.3