Files
izyim-api/tests/Feature/RegisterTest.php
T
2018-05-22 18:11:24 +08:00

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,
]);
}
}