Files
saasshop/tests/Feature/AdminPlatformOrderRenewalMissingSubscriptionSummaryCardLinkTest.php

32 lines
815 B
PHP

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