Files
saasshop/tests/Feature/AdminDashboardBillingWorkbenchPaidPendingShouldUseSyncStatusUnsyncedInLinkTest.php

36 lines
1.0 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminDashboardBillingWorkbenchPaidPendingShouldUseSyncStatusUnsyncedInLinkTest 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_dashboard_billing_workbench_paid_pending_should_use_sync_status_unsynced_in_link(): void
{
$this->loginAsPlatformAdmin();
$res = $this->get('/admin');
$res->assertOk();
// 护栏:收费工作台「待生效」应显式锁定 sync_status=unsynced排除同步失败等异常单
$res->assertSee('待生效', false);
$res->assertSee('payment_status=paid', false);
$res->assertSee('status=pending', false);
$res->assertSee('sync_status=unsynced', false);
}
}