mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 04:24:01 +00:00
456b5a8028
updated run laravel app after db started temporary added login and register test
27 lines
537 B
PHP
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,
|
|
]);
|
|
}
|
|
}
|