Files
saasshop/tests/Feature/AdminPlatformOrderRefundTotalCardHasLinkToRefundOrdersTest.php

33 lines
821 B
PHP

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