Skip to content

Commit 21ace52

Browse files
committed
Forgot all settings test
1 parent 80f5209 commit 21ace52

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/TestCase/Controller/Component/ApiPaginationComponentTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,8 @@ public function testKeySetting()
176176

177177
public function testAllSettings()
178178
{
179-
$request = new Request('/articles');
180-
$request->env('HTTP_ACCEPT', 'application/json');
181-
$controller = new ArticlesController($request, $this->response);
179+
$this->request->env('HTTP_ACCEPT', 'application/json');
180+
$controller = new ArticlesController($this->request, $this->response);
182181
$controller->set('data', $controller->paginate($this->Articles));
183182
$apiPaginationComponent = new ApiPaginationComponent($controller->components(), [
184183
'key' => 'fun',

0 commit comments

Comments
 (0)