Skip to content

Commit

Permalink
Making a test more resilient when additional fixtures are loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Sep 10, 2010
1 parent bdb3feb commit fbd0741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/tests/cases/console/libs/tasks/model.test.php
Expand Up @@ -179,7 +179,7 @@ function testGetNameValidOption() {
* @return void
*/
function testGetNameWithOutOfBoundsOption() {
$this->Task->expects($this->any())->method('in')->will($this->onConsecutiveCalls(10, 1));
$this->Task->expects($this->any())->method('in')->will($this->onConsecutiveCalls(99, 1));
$this->Task->expects($this->once())->method('err');

$result = $this->Task->getName('test_suite');
Expand Down

0 comments on commit fbd0741

Please sign in to comment.