Remove redundant test, will look at re-implmenting later

This commit is contained in:
Jonny Barnes 2019-10-27 18:49:04 +00:00
parent 876f763369
commit 21c89f721c

View file

@ -211,26 +211,4 @@ END;
$this->assertEquals('Jonny Barnes', Like::find($id)->author_name); $this->assertEquals('Jonny Barnes', Like::find($id)->author_name);
} }
public function test_process_like_that_is_tweet_with_oembed_error()
{
$like = new Like();
$like->url = 'https://twitter.com/jonnybarnes/status/1050823255123251200';
$like->save();
$id = $like->id;
$job = new ProcessLike($like);
$mock = new MockHandler([
new Response(500),
]);
$handler = HandlerStack::create($mock);
$client = new Client(['handler' => $handler]);
$this->app->bind(Client::class, $client);
$authorship = new Authorship();
$job->handle($client, $authorship);
$this->assertEquals('Jonny Barnes', Like::find($id)->author_name);
}
} }