love_php/tests/Feature/UserTest.php

41 lines
685 B
PHP
Raw Normal View History

2026-04-02 09:20:51 +08:00
<?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,
]);
}
}