Skip to content

Commit

Permalink
Fix existing test to return correct value from loadModel
Browse files Browse the repository at this point in the history
  • Loading branch information
David Yell committed Aug 1, 2017
1 parent d91671a commit f9b6d9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/TestCase/Controller/SitemapsControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function testIndexWithModels() {
$Controller->expects($this->once())
->method('loadModel')
->with('Pages')
->will($this->returnValue(true));
->willReturn($this->Pages);

$Controller->Pages = $this->Pages;

Expand Down

0 comments on commit f9b6d9c

Please sign in to comment.