补齐批次详情页访客与空态边界测试

This commit is contained in:
萝卜
2026-03-20 09:58:37 +08:00
parent 9b46699ed7
commit 9cf2e7d8e4
3 changed files with 75 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformBatchShowPageGuestCannotAccessTest extends TestCase
{
use RefreshDatabase;
public function test_guest_cannot_access_platform_batch_show_page(): void
{
$this->seed();
$this->get('/admin/platform-batches/show?type=bas&run_id=BAS_GUEST_0001')
->assertRedirect('/admin/login');
}
}