Skip to content

Commit bb10667

Browse files
committed
Fixing tests for new collection class
1 parent 57abcf7 commit bb10667

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

tests/AppTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ public function it_gets_a_list_of_all_apps()
3333
private function checkClasses($detail)
3434
{
3535
$this->assertInstanceOf('Syntax\SteamApi\Containers\App', $detail);
36-
$this->assertInstanceOf('Syntax\SteamApi\Collection', $detail->developers);
37-
$this->assertInstanceOf('Syntax\SteamApi\Collection', $detail->publishers);
38-
$this->assertInstanceOf('Syntax\SteamApi\Collection', $detail->categories);
39-
$this->assertInstanceOf('Syntax\SteamApi\Collection', $detail->genres);
36+
$this->assertInstanceOf('NukaCode\Database\Collection', $detail->developers);
37+
$this->assertInstanceOf('NukaCode\Database\Collection', $detail->publishers);
38+
$this->assertInstanceOf('NukaCode\Database\Collection', $detail->categories);
39+
$this->assertInstanceOf('NukaCode\Database\Collection', $detail->genres);
4040
}
41-
}
41+
}

tests/GroupTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ protected function checkClasses($group)
2929
$this->assertInstanceOf('Syntax\SteamApi\Containers\Group', $group);
3030
$this->assertInstanceOf('Syntax\SteamApi\Containers\Group\Details', $group->groupDetails);
3131
$this->assertInstanceOf('Syntax\SteamApi\Containers\Group\MemberDetails', $group->memberDetails);
32-
$this->assertInstanceOf('Syntax\SteamApi\Collection', $group->members);
32+
$this->assertInstanceOf('NukaCode\Database\Collection', $group->members);
3333
}
3434

3535
}

tests/PlayerTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function it_gets_the_owned_games_by_user_id()
5353
{
5454
$games = $this->steamClient->player($this->id64)->GetOwnedGames();
5555

56-
$this->assertInstanceOf('Syntax\SteamApi\Collection', $games);
56+
$this->assertInstanceOf('NukaCode\Database\Collection', $games);
5757
$this->assertInstanceOf('Syntax\SteamApi\Containers\Game', $games->first());
5858

5959
$attributes = [
@@ -68,7 +68,7 @@ public function it_gets_the_owned_games_by_user_id_without_app_details()
6868
{
6969
$games = $this->steamClient->player($this->id64)->GetOwnedGames(false);
7070

71-
$this->assertInstanceOf('Syntax\SteamApi\Collection', $games);
71+
$this->assertInstanceOf('NukaCode\Database\Collection', $games);
7272
$this->assertInstanceOf('Syntax\SteamApi\Containers\Game', $games->first());
7373

7474
$attributes = [
@@ -87,7 +87,7 @@ public function it_filters_the_owned_games_by_user_id()
8787
{
8888
$games = $this->steamClient->player($this->id64)->GetOwnedGames(true, false, $this->appId);
8989

90-
$this->assertInstanceOf('Syntax\SteamApi\Collection', $games);
90+
$this->assertInstanceOf('NukaCode\Database\Collection', $games);
9191
$this->assertInstanceOf('Syntax\SteamApi\Containers\Game', $games->first());
9292
$this->assertEquals(1, $games->count());
9393

@@ -103,7 +103,7 @@ public function it_gets_recently_played_games_by_user_id()
103103
{
104104
$games = $this->steamClient->player($this->id64)->GetRecentlyPlayedGames();
105105

106-
$this->assertInstanceOf('Syntax\SteamApi\Collection', $games);
106+
$this->assertInstanceOf('NukaCode\Database\Collection', $games);
107107
$this->assertInstanceOf('Syntax\SteamApi\Containers\Game', $games->first());
108108

109109
$attributes = [
@@ -118,7 +118,7 @@ public function it_gets_a_single_recently_played_game_by_user_id()
118118
{
119119
$games = $this->steamClient->player($this->id64)->GetRecentlyPlayedGames(1);
120120

121-
$this->assertInstanceOf('Syntax\SteamApi\Collection', $games);
121+
$this->assertInstanceOf('NukaCode\Database\Collection', $games);
122122
$this->assertInstanceOf('Syntax\SteamApi\Containers\Game', $games->first());
123123
$this->assertEquals(1, $games->count());
124124

@@ -136,4 +136,4 @@ public function it_checks_if_playing_a_shared_game_by_user_and_app_id()
136136

137137
$this->assertNotNull($playingSharedGame);
138138
}
139-
}
139+
}

0 commit comments

Comments
 (0)