Skip to content

Commit

Permalink
Revert "fix"
Browse files Browse the repository at this point in the history
This reverts commit 6c3d0d9.
  • Loading branch information
renshuai committed Feb 5, 2018
1 parent 9ee9c09 commit b06d560
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/Core/CoreAbstractAPITest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,11 @@ public function testConstruct()
public function testHttpInstance()
{
$accessToken = \Mockery::mock(AccessToken::class);
$accessToken->shouldReceive('getMode')->andReturn('dev');

$api = new FooAPI($accessToken);
$this->assertNull($api->getHttpInstance());

$api->getHttp();

$this->assertInstanceOf(Http::class, $api->getHttpInstance());
$middlewares = $api->getHttp()->getMiddlewares();
$this->assertCount(3, $middlewares);
Expand Down

0 comments on commit b06d560

Please sign in to comment.