PixivResolver 追従
This commit is contained in:
parent
eacc7bf5f8
commit
1febc0866d
@ -26,9 +26,9 @@ class PixivResolverTest extends TestCase
|
||||
|
||||
$metadata = $this->resolver->resolve('https://www.pixiv.net/member_illust.php?mode=medium&illust_id=68188073');
|
||||
$this->assertEquals('coffee break', $metadata->title);
|
||||
$this->assertEquals('投稿者: 裕' . PHP_EOL, $metadata->description);
|
||||
$this->assertStringStartsWith('投稿者: 裕', $metadata->description);
|
||||
$this->assertEquals('https://i.pixiv.cat/img-master/img/2018/04/12/00/01/28/68188073_p0_master1200.jpg', $metadata->image);
|
||||
$this->assertEquals(['オリジナル', 'カフェ', '眼鏡', 'イヤホン', 'ぱっつん', '艶ぼくろ', '眼鏡っ娘', 'オリジナル5000users入り'], $metadata->tags);
|
||||
$this->assertEquals(['オリジナル', 'カフェ', '眼鏡', 'イヤホン', 'ぱっつん', '艶ぼくろ', '眼鏡っ娘', 'オリジナル5000users入り', 'マニキュア'], $metadata->tags);
|
||||
if ($this->shouldUseMock()) {
|
||||
$this->assertSame('https://www.pixiv.net/ajax/illust/68188073', (string) $this->handler->getLastRequest()->getUri());
|
||||
}
|
||||
@ -74,9 +74,9 @@ class PixivResolverTest extends TestCase
|
||||
|
||||
$metadata = $this->resolver->resolve('https://www.pixiv.net/artworks/68188073');
|
||||
$this->assertEquals('coffee break', $metadata->title);
|
||||
$this->assertEquals('投稿者: 裕' . PHP_EOL, $metadata->description);
|
||||
$this->assertStringStartsWith('投稿者: 裕', $metadata->description);
|
||||
$this->assertEquals('https://i.pixiv.cat/img-master/img/2018/04/12/00/01/28/68188073_p0_master1200.jpg', $metadata->image);
|
||||
$this->assertEquals(['オリジナル', 'カフェ', '眼鏡', 'イヤホン', 'ぱっつん', '艶ぼくろ', '眼鏡っ娘', 'オリジナル5000users入り'], $metadata->tags);
|
||||
$this->assertEquals(['オリジナル', 'カフェ', '眼鏡', 'イヤホン', 'ぱっつん', '艶ぼくろ', '眼鏡っ娘', 'オリジナル5000users入り', 'マニキュア'], $metadata->tags);
|
||||
if ($this->shouldUseMock()) {
|
||||
$this->assertSame('https://www.pixiv.net/ajax/illust/68188073', (string) $this->handler->getLastRequest()->getUri());
|
||||
}
|
||||
@ -90,9 +90,9 @@ class PixivResolverTest extends TestCase
|
||||
|
||||
$metadata = $this->resolver->resolve('https://www.pixiv.net/en/artworks/68188073');
|
||||
$this->assertEquals('coffee break', $metadata->title);
|
||||
$this->assertEquals('投稿者: 裕' . PHP_EOL, $metadata->description);
|
||||
$this->assertStringStartsWith('投稿者: 裕', $metadata->description);
|
||||
$this->assertEquals('https://i.pixiv.cat/img-master/img/2018/04/12/00/01/28/68188073_p0_master1200.jpg', $metadata->image);
|
||||
$this->assertEquals(['オリジナル', 'カフェ', '眼鏡', 'イヤホン', 'ぱっつん', '艶ぼくろ', '眼鏡っ娘', 'オリジナル5000users入り'], $metadata->tags);
|
||||
$this->assertEquals(['オリジナル', 'カフェ', '眼鏡', 'イヤホン', 'ぱっつん', '艶ぼくろ', '眼鏡っ娘', 'オリジナル5000users入り', 'マニキュア'], $metadata->tags);
|
||||
if ($this->shouldUseMock()) {
|
||||
$this->assertSame('https://www.pixiv.net/ajax/illust/68188073', (string) $this->handler->getLastRequest()->getUri());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user