Skip to content

Commit

Permalink
单元测试修正
Browse files Browse the repository at this point in the history
  • Loading branch information
yunwuxin committed Oct 19, 2020
1 parent b7b0b34 commit c64e24d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/RouteTest.php
Expand Up @@ -223,7 +223,8 @@ public function testRedirectDispatch()
{
$this->route->redirect('foo', 'http://localhost', 302);

$request = $this->makeRequest('foo');
$request = $this->makeRequest('foo');
$this->app->shouldReceive('make')->with(Request::class)->andReturn($request);
$response = $this->route->dispatch($request);

$this->assertInstanceOf(Redirect::class, $response);
Expand Down

0 comments on commit c64e24d

Please sign in to comment.