Skip to content

Commit

Permalink
Updating test cases to reflect changes in default templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Aug 12, 2009
1 parent 78c4a21 commit 0a1d8ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/tests/cases/console/libs/tasks/controller.test.php
Expand Up @@ -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);


Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 0a1d8ca

Please sign in to comment.