diff options
Diffstat (limited to 'tests/FunctionalTests/protected')
-rw-r--r-- | tests/FunctionalTests/protected/pages/UI/LabeledTextBox.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/FunctionalTests/protected/pages/UI/LabeledTextBox.php b/tests/FunctionalTests/protected/pages/UI/LabeledTextBox.php index 3a3eba2d..15702d29 100644 --- a/tests/FunctionalTests/protected/pages/UI/LabeledTextBox.php +++ b/tests/FunctionalTests/protected/pages/UI/LabeledTextBox.php @@ -15,7 +15,8 @@ class LabeledTextBox extends TTemplateControl */
public function getTextBox()
{
- return $this->textbox;
+ $this->ensureChildControls();
+ return $this->getRegisteredObject('textbox');
}
/**
@@ -23,7 +24,8 @@ class LabeledTextBox extends TTemplateControl */
public function getLabel()
{
- return $this->label;
+ $this->ensureChildControls();
+ return $this->getRegisteredObject('label');
}
}
|