补强快捷筛选不继承工具开关护栏(续费缺订阅)

This commit is contained in:
萝卜
2026-03-18 16:17:29 +08:00
parent 6705875a4c
commit 3d1ebb7a1a

View File

@@ -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('/<a[^>]*href="([^"]+)"[^>]*class="muted"[^>]*>续费缺订阅<\/a>/', $html);
preg_match('/<a[^>]*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);
}
}