Aargh, missed some files from the commit

This commit is contained in:
Jonny Barnes 2019-03-17 14:46:45 +00:00
parent 53d8f4b77f
commit 80d9bc7d59
6 changed files with 55 additions and 57 deletions

View file

@ -14,6 +14,7 @@ use GuzzleHttp\Handler\MockHandler;
use Illuminate\FileSystem\FileSystem;
use Illuminate\Support\Facades\Queue;
use Jonnybarnes\WebmentionsParser\Parser;
use App\Exceptions\RemoteContentNotFoundException;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class ProcessWebMentionJobTest extends TestCase
@ -29,11 +30,10 @@ class ProcessWebMentionJobTest extends TestCase
parent::tearDown();
}
/**
* @expectedException \App\Exceptions\RemoteContentNotFoundException
*/
public function test_for_exception_from_failure_to_get_webmention()
{
$this->expectException(RemoteContentNotFoundException::class);
$parser = new Parser();
$mock = new MockHandler([
new Response(404),