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

@ -8,6 +8,7 @@ use GuzzleHttp\HandlerStack;
use GuzzleHttp\Psr7\Response;
use App\Services\BookmarkService;
use GuzzleHttp\Handler\MockHandler;
use App\Exceptions\InternetArchiveException;
class BookmarksTest extends TestCase
{
@ -32,11 +33,10 @@ class BookmarksTest extends TestCase
$this->assertEquals('/web/1234/example.org', $url);
}
/**
* @expectedException App\Exceptions\InternetArchiveException
*/
public function test_archive_link_method_archive_site_error_exception()
{
$this->expectException(InternetArchiveException::class);
$mock = new MockHandler([
new Response(403),
]);
@ -46,11 +46,10 @@ class BookmarksTest extends TestCase
$url = (new BookmarkService())->getArchiveLink('https://example.org');
}
/**
* @expectedException App\Exceptions\InternetArchiveException
*/
public function test_archive_link_method_archive_site_no_location_exception()
{
$this->expectException(InternetArchiveException::class);
$mock = new MockHandler([
new Response(200),
]);