Files
saasshop/tests/Feature/AdminPlatformOrderRefundPaymentStatusSummaryCardLinksTest.php

33 lines
866 B
PHP

<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderRefundPaymentStatusSummaryCardLinksTest 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_refund_payment_status_summary_card_links(): void
{
$this->loginAsPlatformAdmin();
$this->get('/admin/platform-orders')
->assertOk()
->assertSee('部分退款 / 已退款')
->assertSee('payment_status=partially_refunded')
->assertSee('payment_status=refunded');
}
}