platform orders: add renewal missing subscription filter checkbox
This commit is contained in:
@@ -348,6 +348,10 @@
|
||||
<input type="checkbox" name="syncable_only" value="1" @checked(($filters['syncable_only'] ?? '') === '1')>
|
||||
<span>只看可同步</span>
|
||||
</label>
|
||||
<label class="form-inline-row">
|
||||
<input type="checkbox" name="renewal_missing_subscription" value="1" @checked(($filters['renewal_missing_subscription'] ?? '') === '1')>
|
||||
<span>只看续费缺订阅</span>
|
||||
</label>
|
||||
<label class="form-inline-row">
|
||||
<input type="checkbox" name="batch_synced_24h" value="1" @checked(($filters['batch_synced_24h'] ?? '') === '1')>
|
||||
<span>最近24小时批量同步过</span>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user