mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-31 13:50:23 +02:00
refactor: use static values for cache scope
This fixes a future problem when code is placed under a namespace because `get_class($bridge)` will then return e.g. `RssBridge\Bridge\TwitterBridge` instead of the the current value `TwitterBridge`. Also a bit refactoring of `Configuration.php`.
This commit is contained in:
@@ -21,11 +21,5 @@ final class ConfigurationTest extends TestCase
|
||||
|
||||
// test value from env
|
||||
$this->assertSame('Europe/Berlin', Configuration::getConfig('system', 'timezone'));
|
||||
|
||||
// test real values
|
||||
$this->assertSame('file', Configuration::getConfig('cache', 'type'));
|
||||
$this->assertSame(false, Configuration::getConfig('authentication', 'enable'));
|
||||
$this->assertSame(true, Configuration::getConfig('admin', 'donations'));
|
||||
$this->assertSame(1, Configuration::getConfig('error', 'report_limit'));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user