FeaturedGamesTest::testFeaturedGames PHP Метод

testFeaturedGames() публичный Метод

public testFeaturedGames ( )
    public function testFeaturedGames()
    {
        $this->client->shouldReceive('baseUrl')->with('https://na.api.pvp.net/observer-mode/rest/')->once()->with('https://na.api.pvp.net/observer-mode/rest/');
        $this->client->shouldReceive('request')->with('featured', ['api_key' => 'key'])->once()->andReturn(file_get_contents('tests/Json/featuredgames.na.json'));
        $api = new Api('key', $this->client);
        $featuredGames = $api->featuredGames()->featuredGames();
        $this->assertEquals(1718765493, $featuredGames[0]->gameId);
    }