fix: statisc
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user