M5: Workerman 常驻服务 + AI 审核/润色插件 + 支付插件(支付宝/微信/沙箱)+ 会员插件(套餐/订阅/付费文章)
This commit is contained in:
@@ -2,18 +2,24 @@
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
// use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Tests\TestCase;
|
||||
|
||||
class ExampleTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* A basic test example.
|
||||
*/
|
||||
public function test_the_application_returns_a_successful_response(): void
|
||||
{
|
||||
$response = $this->get('/');
|
||||
use RefreshDatabase;
|
||||
|
||||
$response->assertStatus(200);
|
||||
/**
|
||||
* 首页与前台关键页面正常渲染。
|
||||
*/
|
||||
public function test_home_page_returns_successful_response(): void
|
||||
{
|
||||
$this->seed();
|
||||
|
||||
$this->get('/')->assertStatus(200);
|
||||
$this->get('/archives')->assertStatus(200);
|
||||
$this->get('/rss.xml')->assertStatus(200);
|
||||
$this->get('/sitemap.xml')->assertStatus(200);
|
||||
$this->get('/robots.txt')->assertStatus(200);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user