mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 12:34:06 +00:00
26 lines
539 B
PHP
26 lines
539 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 testSendVerification()
|
|
{
|
|
$response = $this->json('POST', '/api/send-verification', ['phone' => '0123456789']);
|
|
$response
|
|
->assertStatus(200)
|
|
->assertJson([
|
|
'success' => true,
|
|
]);
|
|
}
|
|
}
|