Added test for Route::Create (#306)

* Added test for Route::Create

* cd
This commit is contained in:
Tobias Nyholm 2017-03-25 14:02:11 +01:00 committed by GitHub
parent 1bfd40721e
commit e74d7ad130

View File

@ -9,6 +9,8 @@
namespace Mailgun\Tests\Api;
use GuzzleHttp\Psr7\Response;
/**
* @author David Garcia <me@davidgarcia.cat>
*/
@ -19,6 +21,16 @@ class RoutesTest extends TestCase
$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}
*/
@ -26,24 +38,4 @@ class RoutesTest extends TestCase
{
return 'Mailgun\Api\Routes';
}
public function testGetRoutesCollection()
{
}
public function testGetRoutesResource()
{
}
public function testPostRouteResource()
{
}
public function testUpdateRouteResource()
{
}
public function testDeleteRouteResource()
{
}
}