Files
izyim-api/tests/Feature/LoginTest.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
537 B
PHP

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