diff --git a/tests/V2/RecipeEndpointTest.php b/tests/V2/RecipeEndpointTest.php index bf45f84..c347cc4 100644 --- a/tests/V2/RecipeEndpointTest.php +++ b/tests/V2/RecipeEndpointTest.php @@ -18,6 +18,7 @@ public function testSearchInput() { $this->mockResponse( '[7259,7260,7261,7262,7263,7264,7265,7266,7267,7268,7269,7270,7271,7272,7273,7274,7275]' ); $this->assertContains( 7267, $endpoint->input(43775) ); + $this->assertEquals('input=43775', $this->getLastRequest()->getUri()->getQuery()); } public function testSearchOutput() { @@ -27,5 +28,6 @@ public function testSearchOutput() { $this->mockResponse( '[7237]' ); $this->assertEquals( [7237], $endpoint->output(43775) ); + $this->assertEquals('output=43775', $this->getLastRequest()->getUri()->getQuery()); } } diff --git a/tests/V2/WvWEndpointTest.php b/tests/V2/WvWEndpointTest.php index e545944..beba789 100644 --- a/tests/V2/WvWEndpointTest.php +++ b/tests/V2/WvWEndpointTest.php @@ -37,6 +37,7 @@ public function testMatchEndpoint() { $this->mockResponse('{"id":"2-6","scores":{"red":169331,"blue":246780,"green":216241}}'); $this->assertEquals(169331, $endpoint->world('id')->scores->red); + $this->assertEquals('world=id', $this->getLastRequest()->getUri()->getQuery()); } public function testMatchOverviewEndpoint() { @@ -47,6 +48,7 @@ public function testMatchOverviewEndpoint() { $this->mockResponse('{"id":"1-1","worlds":{"red":1008,"blue":1019,"green":1005}}'); $this->assertEquals(1008, $endpoint->world(1008)->worlds->red); + $this->assertEquals('world=1008', $this->getLastRequest()->getUri()->getQuery()); } public function testMatchScoreEndpoint() { @@ -57,6 +59,7 @@ public function testMatchScoreEndpoint() { $this->mockResponse('{"id":"1-1","scores":{"red":169331,"blue":246780,"green":216241}}'); $this->assertEquals(169331, $endpoint->world(1008)->scores->red); + $this->assertEquals('world=1008', $this->getLastRequest()->getUri()->getQuery()); } public function testMatchStatEndpoint() { @@ -67,6 +70,7 @@ public function testMatchStatEndpoint() { $this->mockResponse('{"id":"1-1","deaths":{"red":7276,"blue":5922,"green":5767}}'); $this->assertEquals(7276, $endpoint->world(1008)->deaths->red); + $this->assertEquals('world=1008', $this->getLastRequest()->getUri()->getQuery()); } public function testRankEndpoint() {