Fix like tests

This commit is contained in:
Jonny Barnes 2020-08-09 20:12:45 +01:00
parent 3b7fef3ab6
commit e2279a0de8

View file

@ -97,7 +97,9 @@ END;
]);
$handler = HandlerStack::create($mock);
$client = new Client(['handler' => $handler]);
$this->app->bind(Client::class, $client);
$this->app->bind(Client::class, function () use ($client) {
return $client;
});
$authorship = new Authorship();
$job->handle($client, $authorship);
@ -136,7 +138,9 @@ END;
]);
$handler = HandlerStack::create($mock);
$client = new Client(['handler' => $handler]);
$this->app->bind(Client::class, $client);
$this->app->bind(Client::class, function () use ($client) {
return $client;
});
$authorship = new Authorship();
$job->handle($client, $authorship);
@ -168,7 +172,9 @@ END;
]);
$handler = HandlerStack::create($mock);
$client = new Client(['handler' => $handler]);
$this->app->bind(Client::class, $client);
$this->app->bind(Client::class, function () use ($client) {
return $client;
});
$authorship = new Authorship();
$job->handle($client, $authorship);
@ -192,7 +198,9 @@ END;
]);
$handler = HandlerStack::create($mock);
$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->author_name = 'Jonny Barnes';