mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-12-01 17:36:05 +03:00
removed unused method
This commit is contained in:
parent
7728cf393c
commit
b56b7dd81d
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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 [
|
||||
|
Loading…
Reference in New Issue
Block a user