fix: statisc

This commit is contained in:
hashbro
2026-08-10 03:53:10 +08:00
parent ad30453922
commit aad44bf52e
33 changed files with 1207 additions and 28 deletions
+8
View File
@@ -71,6 +71,8 @@ class SystemAdminTest extends TestCase
'telegram_owner_chat_id' => '-1001',
'channels_max_per_agent' => 5,
'channels_domains' => "cdn1.example.com\nhttps://cdn2.example.com/",
'panel_admin_hosts' => "Admin.Example.com\nhttps://ops.example.com:443/",
'panel_agent_hosts' => 'agent.example.com',
])
->assertOk()
->assertJsonPath('code', 0);
@@ -83,6 +85,12 @@ class SystemAdminTest extends TestCase
'cdn1.example.com,cdn2.example.com',
Setting::query()->where('key', 'channels.domains')->value('value')
);
$this->assertSame(['admin.example.com', 'ops.example.com'], config('coruna.panel.admin_hosts'));
$this->assertSame(['agent.example.com'], config('coruna.panel.agent_hosts'));
$this->assertSame(
'admin.example.com,ops.example.com',
Setting::query()->where('key', 'panel.admin_hosts')->value('value')
);
}
#[Test]