Skip to content

Commit

Permalink
Merge commit '42a5ebf47b73bbdf200f0238e30e6d4893695f80' into 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyharris committed Dec 15, 2010
1 parent 9fa1bec commit 10bf41a
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -473,13 +473,17 @@ function testPaginateOrderVirtualField() {
$this->assertEqual(Set::extract($result, '{n}.ControllerPost.offset_test'), array(2, 3, 4));
}

/**
* Tests for missing models
*
* @expectedException MissingModelException
*/
function testPaginateMissingModel() {
$request = new CakeRequest('controller_posts/index');
$request->params['pass'] = $request->params['named'] = array();

$Controller = new PaginatorTestController($request);
$Controller->constructClasses();
$this->expectException('MissingModelException');
$Controller->Paginator->paginate('MissingModel');
}
}

0 comments on commit 10bf41a

Please sign in to comment.