From 1debcb9ce6dfc0496099cb0a4fcf43d5f0a84e8f Mon Sep 17 00:00:00 2001 From: Juan Basso Date: Fri, 21 Jan 2011 13:25:30 -0200 Subject: [PATCH] Replacing deprecated startTest/endTest by setUp/tearDown in bake templates. --- cake/console/templates/default/classes/test.ctp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/cake/console/templates/default/classes/test.ctp b/cake/console/templates/default/classes/test.ctp index 1b6a70653..2bcce902b 100644 --- a/cake/console/templates/default/classes/test.ctp +++ b/cake/console/templates/default/classes/test.ctp @@ -64,22 +64,26 @@ class TestCase extends CakeTestCase { /** - * startTest method + * setUp method * * @return void */ - public function startTest() { + public function setUp() { + parent::setUp(); + $this-> } /** - * endTest method + * tearDown method * * @return void */ - public function endTest() { + public function tearDown() { unset($this->); ClassRegistry::flush(); + + parent::tearDown(); }