Files
izyim-api/tests/Feature/RegisterTest.php
T
jack 456b5a8028 added twilio library
updated run laravel app after db started
temporary added login and register test
2018-04-25 22:09:11 +08:00

27 lines
517 B
PHP

<?php
namespace Tests\Feature;
use Tests\TestCase;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Foundation\Testing\RefreshDatabase;
class RegisterTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function testRegister()
{
$response = $this->json('POST', '/api/register', ['name' => 'Sally']);
$response
->assertStatus(201)
->assertJson([
'created' => true,
]);
}
}