platform orders: add renewal missing subscription governance card

This commit is contained in:
萝卜
2026-03-15 06:14:52 +00:00
parent ebc0bd8ce2
commit 2d67c167ed
3 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderRenewalMissingSubscriptionSummaryCardLinkTest 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_platform_orders_page_shows_renewal_missing_subscription_summary_card_link(): void
{
$this->loginAsPlatformAdmin();
$this->get('/admin/platform-orders')
->assertOk()
->assertSee('续费缺订阅')
->assertSee('renewal_missing_subscription=1');
}
}