mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-25 22:36:06 +03:00
Added test for Route::Create (#306)
* Added test for Route::Create * cd
This commit is contained in:
parent
1bfd40721e
commit
e74d7ad130
@ -9,6 +9,8 @@
|
|||||||
|
|
||||||
namespace Mailgun\Tests\Api;
|
namespace Mailgun\Tests\Api;
|
||||||
|
|
||||||
|
use GuzzleHttp\Psr7\Response;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author David Garcia <me@davidgarcia.cat>
|
* @author David Garcia <me@davidgarcia.cat>
|
||||||
*/
|
*/
|
||||||
@ -19,6 +21,16 @@ class RoutesTest extends TestCase
|
|||||||
$this->markTestSkipped('Routes API tests not implemented yet.');
|
$this->markTestSkipped('Routes API tests not implemented yet.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testCreate()
|
||||||
|
{
|
||||||
|
$api = $this->getApiMock();
|
||||||
|
$api->expects($this->once())
|
||||||
|
->method('httpPost')
|
||||||
|
->willReturn(new Response());
|
||||||
|
|
||||||
|
$api->create('catch_all()', ['forward("mailbox@myapp.com")'], 'example', 100);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
@ -26,24 +38,4 @@ class RoutesTest extends TestCase
|
|||||||
{
|
{
|
||||||
return 'Mailgun\Api\Routes';
|
return 'Mailgun\Api\Routes';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testGetRoutesCollection()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testGetRoutesResource()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testPostRouteResource()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testUpdateRouteResource()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testDeleteRouteResource()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user