33 lines
833 B
PHP
33 lines
833 B
PHP
<?php
|
|
|
|
namespace Tests\Feature;
|
|
|
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
use Tests\TestCase;
|
|
|
|
class AdminPlatformOrderPaidActivatedSummaryCardLinksTest 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_paid_and_activated_summary_card_links(): void
|
|
{
|
|
$this->loginAsPlatformAdmin();
|
|
|
|
$this->get('/admin/platform-orders')
|
|
->assertOk()
|
|
->assertSee('已支付 / 已生效')
|
|
->assertSee('payment_status=paid')
|
|
->assertSee('status=activated');
|
|
}
|
|
}
|