mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Merge commit '42a5ebf47b73bbdf200f0238e30e6d4893695f80' into 2.0
This commit is contained in:
parent
9fa1bec0cb
commit
10bf41a4df
1 changed files with 5 additions and 1 deletions
|
@ -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');
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue