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 2
2
3
3
use Syntax \SteamApi \Client ;
4
4
use Syntax \SteamApi \Containers \Player as PlayerContainer ;
5
+ use Syntax \SteamApi \Exceptions \UnrecognizedId ;
5
6
6
7
class User extends Client {
7
8
Original file line number Diff line number Diff line change @@ -14,6 +14,17 @@ public function it_accepts_an_array_of_steam_ids()
14
14
$ this ->assertEquals ($ this ->id64 , $ userService ->getSteamId ()[0 ]);
15
15
}
16
16
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
+
17
28
/** @test */
18
29
public function it_returns_no_match_from_an_invalid_display_name ()
19
30
{
You can’t perform that action at this time.
0 commit comments