Added API /ping endpoint. Closes #687

This commit is contained in:
James Brooks
2015-06-03 08:22:08 +01:00
parent c06019a554
commit dd8fc60209
3 changed files with 47 additions and 0 deletions

24
tests/Api/GeneralTest.php Normal file
View File

@@ -0,0 +1,24 @@
<?php
/*
* This file is part of Cachet.
*
* (c) Cachet HQ <support@cachethq.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CachetHQ\Tests\Cachet\Api;
use CachetHQ\Tests\Cachet\AbstractTestCase;
class GeneralTest extends AbstractTestCase
{
public function testGetPing()
{
$this->get('/api/v1/ping');
$this->seeJson(['data' => 'Pong!']);
$this->assertResponseOk();
}
}