mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-28 22:09:01 +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:
parent
a0a0d5235b
commit
ecb486794b
11 changed files with 42 additions and 41 deletions
|
@ -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'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue