Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
irfan-dahir committed Oct 28, 2023
1 parent 126c631 commit db7c2d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion test/JikanTest/Parser/Club/ClubParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function it_gets_title(): void
public function it_gets_members_count(): void
{
self::assertEquals(
1381,
1398,
$this->parser->getMembersCount()
);
}
Expand Down
14 changes: 7 additions & 7 deletions test/JikanTest/Parser/Producer/ProducerParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function it_gets_url()
public function it_gets_anime()
{
$anime = $this->parser->getResults();
self::assertCount(287, $anime);
self::assertCount(306, $anime);
self::assertContainsOnlyInstancesOf(\Jikan\Model\Common\AnimeCard::class, $anime);
}

Expand All @@ -51,7 +51,7 @@ public function it_gets_anime()
public function it_gets_image()
{
self::assertEquals(
'https://cdn.myanimelist.net/images/company/1.png',
'https://cdn.myanimelist.net/s/common/company_logos/b03509d0-0a9f-4f7e-a75f-6ad2649f4cdc_600x600_i?s=668dd24cfe04283101aba66102a2c2c5',
$this->parser->getImages()->getJpg()->getImageUrl()
);
}
Expand All @@ -73,7 +73,7 @@ public function it_gets_established()
public function it_gets_favorites()
{
self::assertEquals(
2251,
4476,
$this->parser->getFavorites()
);
}
Expand All @@ -83,8 +83,8 @@ public function it_gets_favorites()
*/
public function it_gets_about()
{
self::assertEquals(
null,
self::assertStringContainsString(
"Pierrot ぴえろ (Pierrot Co., Ltd.) is a Japanese animation studio established in May 1979 by former employees of both Tatsunoko Production and Mushi Production.",
$this->parser->getAbout()
);
}
Expand All @@ -95,7 +95,7 @@ public function it_gets_about()
public function it_gets_count()
{
self::assertEquals(
287,
306,
$this->parser->getAnimeCount()
);
}
Expand All @@ -108,7 +108,7 @@ public function it_gets_external_links()
$externalLinks = $this->parser->getExternalLinks();

self::assertCount(
4,
11,
$externalLinks
);

Expand Down

0 comments on commit db7c2d2

Please sign in to comment.