You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
532 B
33 lines
532 B
<?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);
|
|
}
|
|
|
|
|
|
|
|
public function testDatabase()
|
|
{
|
|
// 创建调用至应用程序...
|
|
|
|
$this->assertDatabaseHas('users', [
|
|
'email' => '1033404553@qq.com'
|
|
]);
|
|
}
|
|
}
|