mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 04:24:01 +00:00
25 lines
507 B
PHP
25 lines
507 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' => '01234567890','password' => 'secret']);
|
|
|
|
$response
|
|
->assertStatus(200)
|
|
->assertJsonStructure(['data']);
|
|
}
|
|
}
|