From b56b7dd81db5af8342ea234f58aa109279c20ac0 Mon Sep 17 00:00:00 2001 From: Artem Bondarenko Date: Mon, 5 Oct 2020 19:52:10 +0300 Subject: [PATCH] removed unused method --- src/Api/Stats.php | 12 ------------ tests/Api/StatsTest.php | 25 ------------------------- 2 files changed, 37 deletions(-) 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 [