Fix like tests
This commit is contained in:
parent
3b7fef3ab6
commit
e2279a0de8
1 changed files with 12 additions and 4 deletions
|
@ -97,7 +97,9 @@ END;
|
||||||
]);
|
]);
|
||||||
$handler = HandlerStack::create($mock);
|
$handler = HandlerStack::create($mock);
|
||||||
$client = new Client(['handler' => $handler]);
|
$client = new Client(['handler' => $handler]);
|
||||||
$this->app->bind(Client::class, $client);
|
$this->app->bind(Client::class, function () use ($client) {
|
||||||
|
return $client;
|
||||||
|
});
|
||||||
$authorship = new Authorship();
|
$authorship = new Authorship();
|
||||||
|
|
||||||
$job->handle($client, $authorship);
|
$job->handle($client, $authorship);
|
||||||
|
@ -136,7 +138,9 @@ END;
|
||||||
]);
|
]);
|
||||||
$handler = HandlerStack::create($mock);
|
$handler = HandlerStack::create($mock);
|
||||||
$client = new Client(['handler' => $handler]);
|
$client = new Client(['handler' => $handler]);
|
||||||
$this->app->bind(Client::class, $client);
|
$this->app->bind(Client::class, function () use ($client) {
|
||||||
|
return $client;
|
||||||
|
});
|
||||||
$authorship = new Authorship();
|
$authorship = new Authorship();
|
||||||
|
|
||||||
$job->handle($client, $authorship);
|
$job->handle($client, $authorship);
|
||||||
|
@ -168,7 +172,9 @@ END;
|
||||||
]);
|
]);
|
||||||
$handler = HandlerStack::create($mock);
|
$handler = HandlerStack::create($mock);
|
||||||
$client = new Client(['handler' => $handler]);
|
$client = new Client(['handler' => $handler]);
|
||||||
$this->app->bind(Client::class, $client);
|
$this->app->bind(Client::class, function () use ($client) {
|
||||||
|
return $client;
|
||||||
|
});
|
||||||
$authorship = new Authorship();
|
$authorship = new Authorship();
|
||||||
|
|
||||||
$job->handle($client, $authorship);
|
$job->handle($client, $authorship);
|
||||||
|
@ -192,7 +198,9 @@ END;
|
||||||
]);
|
]);
|
||||||
$handler = HandlerStack::create($mock);
|
$handler = HandlerStack::create($mock);
|
||||||
$client = new Client(['handler' => $handler]);
|
$client = new Client(['handler' => $handler]);
|
||||||
$this->app->bind(Client::class, $client);
|
$this->app->bind(Client::class, function () use ($client) {
|
||||||
|
return $client;
|
||||||
|
});
|
||||||
|
|
||||||
$info = new stdClass();
|
$info = new stdClass();
|
||||||
$info->author_name = 'Jonny Barnes';
|
$info->author_name = 'Jonny Barnes';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue