diff --git a/src/Api/Stats.php b/src/Api/Stats.php index fdc3d71..e5a7144 100644 --- a/src/Api/Stats.php +++ b/src/Api/Stats.php @@ -33,16 +33,4 @@ class Stats extends HttpApi return $this->hydrateResponse($response, TotalResponse::class); } - - /** - * @return AllResponse|array - */ - public function all(string $domain, array $params = []) - { - Assert::stringNotEmpty($domain); - - $response = $this->httpGet(sprintf('/v3/%s/stats', rawurlencode($domain)), $params); - - return $this->hydrateResponse($response, AllResponse::class); - } } diff --git a/tests/Api/StatsTest.php b/tests/Api/StatsTest.php index a009ea3..4d06563 100644 --- a/tests/Api/StatsTest.php +++ b/tests/Api/StatsTest.php @@ -53,31 +53,6 @@ class StatsTest extends TestCase $api->total(''); } - public function testAll() - { - $data = [ - 'foo' => 'bar', - ]; - - $api = $this->getApiMock(); - $api->expects($this->once()) - ->method('httpGet') - ->with('/v3/domain/stats', $data) - ->willReturn(new Response()); - - $api->all('domain', $data); - } - - /** - * @expectedException \Mailgun\Exception\InvalidArgumentException - */ - public function testAllInvalidArgument() - { - $api = $this->getApiMock(); - - $api->all(''); - } - public function totalProvider() { return [