Permalink
Browse files

Updating test cases to reflect changes in default templates.

  • Loading branch information...
1 parent 78c4a21 commit 0a1d8ca92a0e4606d2cb40a0aa30e7201a5569e6 @markstory markstory committed Aug 7, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/tests/cases/console/libs/tasks/controller.test.php
@@ -315,7 +315,7 @@ function testBakeActionsUsingSessions() {
$this->assertTrue(strpos($result, "\$this->Session->setFlash(__('The Article could not be saved. Please, try again.', true));") !== false);
$this->assertTrue(strpos($result, 'function delete($id = null)') !== false);
- $this->assertTrue(strpos($result, 'if ($this->Article->del($id))') !== false);
+ $this->assertTrue(strpos($result, 'if ($this->Article->delete($id))') !== false);
$this->assertTrue(strpos($result, "\$this->Session->setFlash(__('Article deleted', true))") !== false);
@@ -359,7 +359,7 @@ function testBakeActionsWithNoSessions() {
$this->assertTrue(strpos($result, "\$this->set(compact('tags'))") !== false);
$this->assertTrue(strpos($result, 'function delete($id = null)') !== false);
- $this->assertTrue(strpos($result, 'if ($this->Article->del($id))') !== false);
+ $this->assertTrue(strpos($result, 'if ($this->Article->delete($id))') !== false);
$this->assertTrue(strpos($result, "\$this->flash(__('Article deleted', true), array('action' => 'index'))") !== false);
}

0 comments on commit 0a1d8ca

Please sign in to comment.