From b97d6a698d80d946e3669595e8d87f0c378b3520 Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 28 Apr 2006 11:02:12 +0000 Subject: A few minor fixes. --- .../features/protected/controls/LabeledTextbox.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tests') 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'); } } -- cgit v1.2.3