Skip to content

Commit 8160dfb

Browse files
committed
Fix tests by adding alias.
Signed-off-by: Jason Lewis <[email protected]>
1 parent 4a804a9 commit 8160dfb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/Http/Middleware/RequestTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ public function setUp()
1919
$this->router = m::mock('Dingo\Api\Routing\Router');
2020
$this->validator = new RequestValidator($this->app);
2121

22+
$this->app->alias('Dingo\Api\Http\Request', 'Dingo\Api\Contract\Http\Request');
23+
2224
$this->middleware = new RequestMiddleware($this->app, $this->router, $this->validator, []);
2325
}
2426

0 commit comments

Comments
 (0)