Skip to content

Commit 0a1d8ca

Browse files
committed
Updating test cases to reflect changes in default templates.
1 parent 78c4a21 commit 0a1d8ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cake/tests/cases/console/libs/tasks/controller.test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ function testBakeActionsUsingSessions() {
315315
$this->assertTrue(strpos($result, "\$this->Session->setFlash(__('The Article could not be saved. Please, try again.', true));") !== false);
316316

317317
$this->assertTrue(strpos($result, 'function delete($id = null)') !== false);
318-
$this->assertTrue(strpos($result, 'if ($this->Article->del($id))') !== false);
318+
$this->assertTrue(strpos($result, 'if ($this->Article->delete($id))') !== false);
319319
$this->assertTrue(strpos($result, "\$this->Session->setFlash(__('Article deleted', true))") !== false);
320320

321321

@@ -359,7 +359,7 @@ function testBakeActionsWithNoSessions() {
359359
$this->assertTrue(strpos($result, "\$this->set(compact('tags'))") !== false);
360360

361361
$this->assertTrue(strpos($result, 'function delete($id = null)') !== false);
362-
$this->assertTrue(strpos($result, 'if ($this->Article->del($id))') !== false);
362+
$this->assertTrue(strpos($result, 'if ($this->Article->delete($id))') !== false);
363363
$this->assertTrue(strpos($result, "\$this->flash(__('Article deleted', true), array('action' => 'index'))") !== false);
364364
}
365365

0 commit comments

Comments
 (0)