feat(platform_orders): add link from refund total card to refund orders

This commit is contained in:
萝卜
2026-03-14 21:37:49 +00:00
parent ee85e63340
commit 6e48c47288
2 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderRefundTotalCardHasLinkToRefundOrdersTest 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_refund_total_card_should_link_to_refund_orders_list(): void
{
$this->loginAsPlatformAdmin();
$this->get('/admin/platform-orders')
->assertOk()
->assertSee('退款总额')
->assertSee('查看有退款订单')
->assertSee('refund_status=has');
}
}