Files
saasshop/tests/Feature/AdminPlatformOrderReceiptCardsCrossLinksTest.php

34 lines
876 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('receipt_status=none')
->assertSee('receipt_status=has');
}
}