diff --git a/tests/Unit/MetadataResolver/NijieResolverTest.php b/tests/Unit/MetadataResolver/NijieResolverTest.php index 0bc35534..ed60af1d 100644 --- a/tests/Unit/MetadataResolver/NijieResolverTest.php +++ b/tests/Unit/MetadataResolver/NijieResolverTest.php @@ -56,13 +56,13 @@ public function testAnimationGif() $this->createResolver(NijieResolver::class, $responseText); - $metadata = $this->resolver->resolve('https://nijie.info/view.php?id=9537'); - $this->assertSame('ニジエがgifに対応したんだってね 奥さん', $metadata->title); - $this->assertSame('投稿者: 黒末アプコ' . PHP_EOL . 'アニメgifとか専門外なのでよくわかりませんでした', $metadata->description); + $metadata = $this->resolver->resolve('https://nijie.info/view.php?id=393134'); + $this->assertSame('MANKALOさん', $metadata->title); + $this->assertStringStartsWith('投稿者: sb' . PHP_EOL . 'すけぶの。服の着脱機能を勝手に付けさせて頂きました。', $metadata->description); $this->assertStringStartsWith('https://nijie.info/pic/logo/nijie_logo_og.png', $metadata->image); - $this->assertSame(['アニメgif'], $metadata->tags); + $this->assertSame(['ロリ', '中出し', '騎乗位', '獣耳', 'GIFアニメ', 'ドット絵'], $metadata->tags); if ($this->shouldUseMock()) { - $this->assertSame('https://nijie.info/view.php?id=9537', (string) $this->handler->getLastRequest()->getUri()); + $this->assertSame('https://nijie.info/view.php?id=393134', (string) $this->handler->getLastRequest()->getUri()); } } diff --git a/tests/fixture/Nijie/testAnimationGifResponse.html b/tests/fixture/Nijie/testAnimationGifResponse.html index 6cb42c13..37a94a40 100644 --- a/tests/fixture/Nijie/testAnimationGifResponse.html +++ b/tests/fixture/Nijie/testAnimationGifResponse.html @@ -1,9 +1,32 @@ -ニジエがgifに対応したんだってね 奥さん | 黒末アプコ | ニジエ -

ニジエがgifに対応したんだってね 奥さん | 黒末アプコ