summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Ticket191.php
diff options
context:
space:
mode:
authorxue <>2006-05-24 14:59:37 +0000
committerxue <>2006-05-24 14:59:37 +0000
commit9e8c47274843d78b68bf3515d26d78438e725528 (patch)
treeb1e3589628d61942f685d93fba49e3e2cf04469c /tests/FunctionalTests/tickets/protected/pages/Ticket191.php
parent2f02ab8fcbb5f45bb92cb9546c0328769c290049 (diff)
Added test case for #191.
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages/Ticket191.php')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket191.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket191.php b/tests/FunctionalTests/tickets/protected/pages/Ticket191.php
new file mode 100644
index 00000000..61c2a253
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket191.php
@@ -0,0 +1,22 @@
+<?php
+
+class Ticket191 extends TPage
+{
+ public function buttonClicked($sender,$param)
+ {
+ if($this->IsValid)
+ $this->Application->clearGlobalState('ticket190');
+ }
+
+ public function customValidation($sender,$param)
+ {
+ $param->IsValid=$this->Application->getGlobalState('ticket190')===$this->TextBox->Text;
+ }
+
+ public function updateGlobal($sender,$param)
+ {
+ $this->Application->setGlobalState('ticket190',$this->TextBox2->Text);
+ }
+}
+
+?> \ No newline at end of file