platform orders: add renewal missing subscription filter checkbox

This commit is contained in:
萝卜
2026-03-15 06:21:00 +00:00
parent 2d67c167ed
commit 1bd631a0b7
2 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderIndexRenewalMissingSubscriptionFilterFieldTest extends TestCase
{
use RefreshDatabase;
protected function loginAsPlatformAdmin(): void
{
$this->seed();
$this->post('/admin/login', [
'email' => 'platform.admin@demo.local',
'password' => 'Platform@123456',
])->assertRedirect('/admin');
}
public function test_index_filter_form_should_include_renewal_missing_subscription_checkbox(): void
{
$this->loginAsPlatformAdmin();
$this->get('/admin/platform-orders')
->assertOk()
->assertSee('name="renewal_missing_subscription"', false)
->assertSee('只看续费缺订阅', false);
}
}