Skip to content

Commit

Permalink
Added "early access" app detail parser test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilge committed Mar 25, 2020
1 parent c1f86c1 commit a4bb400
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/Functional/ScrapeAppDetailsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,21 @@ public function testZeroDiscount(): void
self::assertSame(0, $app['discount']);
}

/**
* Tests that a game perpetually in early access is parsed correctly.
*
* @see https://store.steampowered.com/app/15540/1_2_3_KICK_IT_Drop_That_Beat_Like_an_Ugly_Baby/
*/
public function testEarlyAccess(): void
{
$app = $this->porter->importOne(new ImportSpecification(new ScrapeAppDetails(15540)));

self::assertArrayHasKey('tags', $app);
self::assertNotEmpty($tags = $app['tags']);

self::assertCount(1, from($tags)->where('$v["name"] === "Early Access"'));
}

/**
* Tests that games marked as VR exclusive are correctly detected.
*
Expand Down

0 comments on commit a4bb400

Please sign in to comment.