From 3d1ebb7a1a9d1b3862d35bbb448b6006e7a3dbbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Wed, 18 Mar 2026 16:17:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=BC=BA=E5=BF=AB=E6=8D=B7=E7=AD=9B?= =?UTF-8?q?=E9=80=89=E4=B8=8D=E7=BB=A7=E6=89=BF=E5=B7=A5=E5=85=B7=E5=BC=80?= =?UTF-8?q?=E5=85=B3=E6=8A=A4=E6=A0=8F=EF=BC=88=E7=BB=AD=E8=B4=B9=E7=BC=BA?= =?UTF-8?q?=E8=AE=A2=E9=98=85=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...xQuickFiltersShouldNotInheritToolTogglesTest.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/Feature/AdminPlatformOrderIndexQuickFiltersShouldNotInheritToolTogglesTest.php b/tests/Feature/AdminPlatformOrderIndexQuickFiltersShouldNotInheritToolTogglesTest.php index 88f72db..df9995e 100644 --- a/tests/Feature/AdminPlatformOrderIndexQuickFiltersShouldNotInheritToolTogglesTest.php +++ b/tests/Feature/AdminPlatformOrderIndexQuickFiltersShouldNotInheritToolTogglesTest.php @@ -80,5 +80,18 @@ class AdminPlatformOrderIndexQuickFiltersShouldNotInheritToolTogglesTest extends $this->assertArrayNotHasKey('bmpa_failed_only', $q4); $this->assertArrayNotHasKey('bmpa_error_keyword', $q4); $this->assertArrayNotHasKey('fail_only', $q4); + + // 5) 快捷筛选:续费缺订阅 + $this->assertMatchesRegularExpression('/]*href="([^"]+)"[^>]*class="muted"[^>]*>续费缺订阅<\/a>/', $html); + preg_match('/]*href="([^"]+)"[^>]*class="muted"[^>]*>续费缺订阅<\/a>/', $html, $m5); + $href5 = html_entity_decode($m5[1] ?? ''); + $query5 = parse_url($href5, PHP_URL_QUERY) ?: ''; + parse_str($query5, $q5); + + $this->assertSame('1', (string) ($q5['renewal_missing_subscription'] ?? '')); + $this->assertSame('1', (string) ($q5['merchant_id'] ?? '')); + $this->assertArrayNotHasKey('bmpa_failed_only', $q5); + $this->assertArrayNotHasKey('bmpa_error_keyword', $q5); + $this->assertArrayNotHasKey('fail_only', $q5); } }