35 lines
929 B
PHP
35 lines
929 B
PHP
<?php
|
|
|
|
namespace Tests\Feature;
|
|
|
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
use Tests\TestCase;
|
|
|
|
class AdminPlatformOrderReceiptCardsCrossLinksTest 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_receipt_cards_should_have_cross_links_for_governance_navigation(): void
|
|
{
|
|
$this->loginAsPlatformAdmin();
|
|
|
|
$this->get('/admin/platform-orders')
|
|
->assertOk()
|
|
->assertSee('查看已付无回执订单')
|
|
->assertSee('查看有回执订单')
|
|
->assertSee('payment_status=paid')
|
|
->assertSee('receipt_status=none')
|
|
->assertSee('receipt_status=has');
|
|
}
|
|
}
|