不要な成否判定の削除

ref: c0b76e5
This commit is contained in:
eai04191
2019-09-10 07:03:46 +09:00
parent fb6c1a0574
commit 033784bfc8
17 changed files with 257 additions and 335 deletions

View File

@@ -3,21 +3,12 @@
namespace Tests\Unit\MetadataResolver;
use App\MetadataResolver\OGPResolver;
use GuzzleHttp\Exception\ClientException;
use Tests\TestCase;
class OGPResolverTest extends TestCase
{
use CreateMockedResolver;
public function testMissingUrl()
{
$this->createResolver(OGPResolver::class, '', [], 404);
$this->expectException(\RuntimeException::class);
$this->resolver->resolve('http://example.com/404');
}
public function testResolve()
{
$response = <<< 'HTML'