mirror of https://github.com/hasinhayder/hydra
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
735 B
38 lines
735 B
<?php
|
|
|
|
namespace Tests\Feature;
|
|
|
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
use Illuminate\Foundation\Testing\WithFaker;
|
|
use Tests\TestCase;
|
|
|
|
class HelloHydraTest extends TestCase
|
|
{
|
|
/**
|
|
* A basic feature test example.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function test_hello_hydra()
|
|
{
|
|
$response = $this->get('/api/hydra');
|
|
|
|
$response
|
|
->assertStatus(200)
|
|
->assertJson([
|
|
'message' => true,
|
|
]);
|
|
}
|
|
|
|
public function test_hydra_version()
|
|
{
|
|
$response = $this->get('/api/hydra/version');
|
|
|
|
$response
|
|
->assertStatus(200)
|
|
->assertJson([
|
|
'version' => true,
|
|
]);
|
|
}
|
|
}
|