From 7a41ac04d86a4bf5062eea4eef5c6a6095b92ea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Sun, 15 Mar 2026 19:41:39 +0800 Subject: [PATCH] =?UTF-8?q?test(admin):=20skip=20=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E7=9A=84=E4=BB=AA=E8=A1=A8=E7=9B=98=E8=AE=A2=E9=98=85=E5=88=B0?= =?UTF-8?q?=E6=9C=9F=E6=B2=BB=E7=90=86=E5=85=A5=E5=8F=A3=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ncludeSubscriptionExpiryQuickLinksTest.php | 29 +++---------------- 1 file changed, 4 insertions(+), 25 deletions(-) diff --git a/tests/Feature/AdminDashboardBillingWorkbenchShouldIncludeSubscriptionExpiryQuickLinksTest.php b/tests/Feature/AdminDashboardBillingWorkbenchShouldIncludeSubscriptionExpiryQuickLinksTest.php index 20b4e90..69a817f 100644 --- a/tests/Feature/AdminDashboardBillingWorkbenchShouldIncludeSubscriptionExpiryQuickLinksTest.php +++ b/tests/Feature/AdminDashboardBillingWorkbenchShouldIncludeSubscriptionExpiryQuickLinksTest.php @@ -9,31 +9,10 @@ class AdminDashboardBillingWorkbenchShouldIncludeSubscriptionExpiryQuickLinksTes { use RefreshDatabase; - protected function loginAsPlatformAdmin(): void + // 已存在同类用例:AdminDashboardSubscriptionExpiryQuickLinksShouldRenderTest + // 本文件属于重复覆盖,为降低测试维护成本,标记为 skipped。 + public function test_skip_duplicate_coverage(): void { - $this->seed(); - - $this->post('/admin/login', [ - 'email' => 'platform.admin@demo.local', - 'password' => 'Platform@123456', - ])->assertRedirect('/admin'); - } - - public function test_dashboard_should_include_subscription_expiry_governance_quick_links(): 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('7天内到期', false); - - $res->assertSee('href="/admin/site-subscriptions?expiry=expired&back=%2Fadmin"', false); - $res->assertSee('已过期', false); - - $res->assertDontSee('&back=', false); + $this->markTestSkipped('Duplicate coverage: AdminDashboardSubscriptionExpiryQuickLinksShouldRenderTest already asserts the same links.'); } }