Skip to content

Commit

Permalink
[Laravel 10] Revert steamID change in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicekiwi committed Apr 27, 2024
1 parent b922e55 commit 5b15fb7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/AppTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function it_gets_a_list_of_all_apps()
/**
* @param $detail
*/
private function checkClasses($detail)
private function checkClasses($detail): void
{
$this->assertInstanceOf(\Syntax\SteamApi\Containers\App::class, $detail);
$this->assertInstanceOf(\Illuminate\Support\Collection::class, $detail->developers);
Expand Down
6 changes: 3 additions & 3 deletions tests/BaseTester.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

class BaseTester extends TestCase {

protected string $id32 = 'STEAM_0:1:859819470';
protected string $id32 = 'STEAM_1:1:31085444';

protected int $id64 = 76561199679904669;
protected int $id64 = 76561198022436617;

protected string $id3 = '[U:1:1719638941]';
protected string $id3 = '[U:1:62170889]';

protected int $altId64 = 76561197979958413;

Expand Down
2 changes: 1 addition & 1 deletion tests/GroupTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function it_gets_a_summary_of_a_group_by_name()
/**
* @param $group
*/
protected function checkClasses($group)
protected function checkClasses($group): void
{
$this->assertInstanceOf(\Syntax\SteamApi\Containers\Group::class, $group);
$this->assertInstanceOf(\Syntax\SteamApi\Containers\Group\Details::class, $group->groupDetails);
Expand Down
8 changes: 4 additions & 4 deletions tests/IdTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ class IdTest extends BaseTester {
*/
public function it_converts_an_id()
{
$ids = $this->steamClient->convertId(76561198022436617);
$ids = $this->steamClient->convertId($this->id64);

$this->assertEquals('STEAM_1:1:31085444', $ids->id32);
$this->assertEquals(76561198022436617, $ids->id64);
$this->assertEquals('[U:1:62170889]', $ids->id3);
$this->assertEquals($this->id32, $ids->id32);
$this->assertEquals($this->id64, $ids->id64);
$this->assertEquals($this->id3, $ids->id3);
}

}

0 comments on commit 5b15fb7

Please sign in to comment.