removed example test

addded verify sms code test
This commit is contained in:
jack
2018-05-22 19:55:04 +08:00
parent 70d455ac64
commit 3381ce1bd8
3 changed files with 18 additions and 22 deletions
-21
View File
@@ -1,21 +0,0 @@
<?php
namespace Tests\Feature;
use Tests\TestCase;
use Illuminate\Foundation\Testing\RefreshDatabase;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function testBasicTest()
{
$response = $this->get('/');
$response->assertStatus(200);
}
}
+11
View File
@@ -22,4 +22,15 @@ class RegisterTest extends TestCase
'success' => true,
]);
}
public function testVerify()
{
$response = $this->json('POST', '/api/verify', ['phone' => '0123456789', 'token' => '1234']);
$response
->assertStatus(200)
->assertJson([
'success' => true,
]);
}
}