summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/features/protected
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/features/protected')
-rw-r--r--tests/FunctionalTests/features/protected/controls/LabeledTextbox.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/FunctionalTests/features/protected/controls/LabeledTextbox.php b/tests/FunctionalTests/features/protected/controls/LabeledTextbox.php
index e190abd4..9a50d095 100644
--- a/tests/FunctionalTests/features/protected/controls/LabeledTextbox.php
+++ b/tests/FunctionalTests/features/protected/controls/LabeledTextbox.php
@@ -3,8 +3,14 @@
* Created on 28/04/2006
*/
-class LabeledTextBox extends TCompositeControl
+class LabeledTextBox extends TTemplateControl
{
+ public function __construct()
+ {
+ parent::__construct();
+ $this->ensureChildControls();
+ }
+
public function getTextBox()
{
return $this->getRegisteredObject('textbox');
@@ -12,7 +18,7 @@ class LabeledTextBox extends TCompositeControl
public function getLabel()
{
- return $this->label;
+ return $this->getRegisteredObject('label');
}
}