Replacing deprecated startTest/endTest by setUp/tearDown in bake templates.

This commit is contained in:
Juan Basso 2011-01-21 13:25:30 -02:00
parent 1c3e1df305
commit 1debcb9ce6

View file

@ -64,22 +64,26 @@ class <?php echo $fullClassName; ?>TestCase extends CakeTestCase {
<?php endif; ?>
/**
* startTest method
* setUp method
*
* @return void
*/
public function startTest() {
public function setUp() {
parent::setUp();
$this-><?php echo $className . ' = ' . $construction; ?>
}
/**
* endTest method
* tearDown method
*
* @return void
*/
public function endTest() {
public function tearDown() {
unset($this-><?php echo $className;?>);
ClassRegistry::flush();
parent::tearDown();
}
<?php foreach ($methods as $method): ?>