Files
izyim-api/tests/Feature/LoginTest.php
T
jack c64c526d98 updated docker to fix faker image error
updated on user phone verification, create a company profile
removed company store function
updated company with user relationship
added company factory
moved company routes into authenticated routes
updated company test
renamed "verify" routes to "verify-phone"
2018-05-28 17:14:09 +08:00

23 lines
459 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 testLogin()
{
$response = $this->json('POST', '/api/login', ['phone' => '0123456789','password' => 'secret']);
$response
->assertStatus(200);
}
}