File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
src/Syntax/SteamApi/Steam Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 22
33use Syntax \SteamApi \Client ;
44use Syntax \SteamApi \Containers \Player as PlayerContainer ;
5+ use Syntax \SteamApi \Exceptions \UnrecognizedId ;
56
67class User extends Client {
78
Original file line number Diff line number Diff line change @@ -14,6 +14,17 @@ public function it_accepts_an_array_of_steam_ids()
1414 $ this ->assertEquals ($ this ->id64 , $ userService ->getSteamId ()[0 ]);
1515 }
1616
17+ /**
18+ * @test
19+ */
20+ public function it_throws_an_exception_when_no_display_name_is_provided ()
21+ {
22+ $ this ->setExpectedException ('Syntax\SteamApi\Exceptions\UnrecognizedId ' );
23+ $ steamObject = $ this ->steamClient ->user ($ this ->id64 )->ResolveVanityURL ();
24+
25+ $ this ->assertEquals ('No match ' , $ steamObject );
26+ }
27+
1728 /** @test */
1829 public function it_returns_no_match_from_an_invalid_display_name ()
1930 {
You can’t perform that action at this time.
0 commit comments