41 lines
685 B
PHP
41 lines
685 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Tests\Feature;
|
||
|
|
|
||
|
|
use Tests\TestCase;
|
||
|
|
use Illuminate\Foundation\Testing\WithFaker;
|
||
|
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||
|
|
|
||
|
|
class UserTest extends TestCase
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* A basic test example.
|
||
|
|
*
|
||
|
|
* @return void
|
||
|
|
*/
|
||
|
|
public function testExample()
|
||
|
|
{
|
||
|
|
$this->assertTrue(true);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
public function userinfo(){
|
||
|
|
$this->assertTrue(true);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 附近的人
|
||
|
|
*/
|
||
|
|
public function testNearSingle()
|
||
|
|
{
|
||
|
|
$response = $this->json('GET', '/api/near/single');
|
||
|
|
|
||
|
|
$response->assertStatus(200)
|
||
|
|
->assertJson([
|
||
|
|
'code' => 0,
|
||
|
|
]);
|
||
|
|
}
|
||
|
|
}
|