seed(); $this->post('/admin/login', [ 'email' => 'platform.admin@demo.local', 'password' => 'Platform@123456', ])->assertRedirect('/admin'); } public function test_dashboard_subscription_expiry_quick_links_should_render(): void { $this->loginAsPlatformAdmin(); $res = $this->get('/admin'); $res->assertOk(); $res->assertSee('订阅到期治理'); $res->assertSee('href="/admin/site-subscriptions?expiry=expiring_7d&back=%2Fadmin"', false); $res->assertSee('href="/admin/site-subscriptions?expiry=expired&back=%2Fadmin"', false); $res->assertDontSee('&back=', false); } }