统一仪表盘已付无回执帮助说明口径

This commit is contained in:
萝卜
2026-03-18 23:13:49 +08:00
parent 6cb503e09a
commit 2ebee7f1ad
2 changed files with 33 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminDashboardPaidNoReceiptHelpTextShouldUsePaidNoReceiptPhraseTest 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_dashboard_paid_no_receipt_help_text_should_use_paid_no_receipt_phrase(): void
{
$this->loginAsPlatformAdmin();
$res = $this->get('/admin');
$res->assertOk();
$html = (string) $res->getContent();
$this->assertStringContainsString('已付无回执=已支付但缺 payment_receipts', $html);
}
}