diff --git a/tests/Api/RoutesTest.php b/tests/Api/RoutesTest.php index ea0c9f4..2eb8beb 100644 --- a/tests/Api/RoutesTest.php +++ b/tests/Api/RoutesTest.php @@ -9,6 +9,8 @@ namespace Mailgun\Tests\Api; +use GuzzleHttp\Psr7\Response; + /** * @author David Garcia */ @@ -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() - { - } }