AntCMS/tests/ConfigTest.php
2023-01-09 01:05:24 -08:00

29 lines
656 B
PHP

<?php
use AntCMS\AntConfig;
use PHPUnit\Framework\TestCase;
include_once 'Includes' . DIRECTORY_SEPARATOR . 'Include.php';
class ConfigTest extends TestCase
{
public function testGetConfig()
{
$config = AntConfig::currentConfig();
$expectedKeys = array(
'SiteInfo',
'forceHTTPS',
'activeTheme',
'generateKeywords',
'enableCache',
'admin',
'debug',
'baseURL'
);
foreach ($expectedKeys as $key) {
$this->assertArrayHasKey($key, $config, "Expected key '$key' not found in config array");
}
}
}