We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80f5209 commit 21ace52Copy full SHA for 21ace52
tests/TestCase/Controller/Component/ApiPaginationComponentTest.php
@@ -176,9 +176,8 @@ public function testKeySetting()
176
177
public function testAllSettings()
178
{
179
- $request = new Request('/articles');
180
- $request->env('HTTP_ACCEPT', 'application/json');
181
- $controller = new ArticlesController($request, $this->response);
+ $this->request->env('HTTP_ACCEPT', 'application/json');
+ $controller = new ArticlesController($this->request, $this->response);
182
$controller->set('data', $controller->paginate($this->Articles));
183
$apiPaginationComponent = new ApiPaginationComponent($controller->components(), [
184
'key' => 'fun',
0 commit comments