summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/ActiveHiddenFieldTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/ActiveHiddenFieldTest.php')
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/ActiveHiddenFieldTest.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveHiddenFieldTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveHiddenFieldTest.php
new file mode 100644
index 00000000..1f7a8a2a
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveHiddenFieldTest.php
@@ -0,0 +1,22 @@
+<?php
+
+class ActiveHiddenFieldTest extends TPage
+{
+ public function onSetValue($sender, $param)
+ {
+ $this->HiddenFieldEmpty->setValue('No longer empty');
+ $this->ResponseLabel->setText($this->HiddenFieldEmpty->getValue());
+ }
+
+ public function onGetValue($sender, $param)
+ {
+ $this->ResponseLabel->setText($this->HiddenFieldUsed->getValue());
+ }
+
+ public function onGetBothValues($sender, $param)
+ {
+ $this->ResponseLabel->setText($this->HiddenFieldEmpty->getValue().'|'.$this->HiddenFieldUsed->getValue());
+ }
+}
+
+?> \ No newline at end of file