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); } }