feat: 切换 schema dump 基线并增强返点结算与管理校验
This commit is contained in:
@@ -18,22 +18,10 @@ test('public settings requires allowed group', function (): void {
|
||||
$this->getJson('/api/v1/settings?group=wallet')
|
||||
->assertStatus(400)
|
||||
->assertJsonPath('code', ErrorCode::ClientHttpError->value);
|
||||
});
|
||||
|
||||
test('public settings returns currency group', function (): void {
|
||||
\App\Models\LotterySetting::query()->updateOrCreate(
|
||||
['setting_key' => 'currency.display_decimals'],
|
||||
[
|
||||
'group_name' => 'currency',
|
||||
'value_json' => 3,
|
||||
'description_zh' => '展示小数位',
|
||||
],
|
||||
);
|
||||
|
||||
|
||||
$this->getJson('/api/v1/settings?group=currency')
|
||||
->assertOk()
|
||||
->assertJsonPath('code', ErrorCode::Success->value)
|
||||
->assertJsonFragment(['key' => 'currency.display_decimals', 'value' => 3]);
|
||||
->assertStatus(400)
|
||||
->assertJsonPath('code', ErrorCode::ClientHttpError->value);
|
||||
});
|
||||
|
||||
test('public settings returns frontend group only', function (): void {
|
||||
|
||||
Reference in New Issue
Block a user