removed unused method

This commit is contained in:
Artem Bondarenko 2020-10-05 19:52:10 +03:00 committed by David Garcia
parent 7728cf393c
commit b56b7dd81d
2 changed files with 0 additions and 37 deletions

View File

@ -33,16 +33,4 @@ class Stats extends HttpApi
return $this->hydrateResponse($response, TotalResponse::class); 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);
}
} }

View File

@ -53,31 +53,6 @@ class StatsTest extends TestCase
$api->total(''); $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() public function totalProvider()
{ {
return [ return [