统一仪表盘已付无回执帮助说明口径
This commit is contained in:
@@ -406,7 +406,7 @@
|
|||||||
'items' => [
|
'items' => [
|
||||||
'同步失败=meta.subscription_activation_error.message 存在',
|
'同步失败=meta.subscription_activation_error.message 存在',
|
||||||
'BMPA失败=meta.batch_mark_paid_and_activate_error.message 存在',
|
'BMPA失败=meta.batch_mark_paid_and_activate_error.message 存在',
|
||||||
'无回执=已支付但缺 payment_receipts',
|
'已付无回执=已支付但缺 payment_receipts',
|
||||||
'对账不一致=回执汇总金额与 paid_amount 不一致',
|
'对账不一致=回执汇总金额与 paid_amount 不一致',
|
||||||
'退款不一致=退款汇总与退款状态不一致',
|
'退款不一致=退款汇总与退款状态不一致',
|
||||||
'续费缺订阅=renewal 但 site_subscription_id 为空',
|
'续费缺订阅=renewal 但 site_subscription_id 为空',
|
||||||
|
|||||||
@@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user