From 21c89f721c8d0a7f2ff22a1411b9d8e39405c708 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Sun, 27 Oct 2019 18:49:04 +0000 Subject: [PATCH] Remove redundant test, will look at re-implmenting later --- tests/Feature/LikesTest.php | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/tests/Feature/LikesTest.php b/tests/Feature/LikesTest.php index 4435f4c0..0ad53ac8 100644 --- a/tests/Feature/LikesTest.php +++ b/tests/Feature/LikesTest.php @@ -211,26 +211,4 @@ END; $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); - } }