Merge commit '42a5ebf47b73bbdf200f0238e30e6d4893695f80' into 2.0

This commit is contained in:
Jeremy Harris 2010-12-14 19:00:26 -08:00
parent 9fa1bec0cb
commit 10bf41a4df

View file

@ -473,13 +473,17 @@ class PaginatorTest extends CakeTestCase {
$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');
}
}