1
0
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:
Dag
2022-08-02 15:03:54 +02:00
committed by GitHub
parent a0a0d5235b
commit ecb486794b
11 changed files with 42 additions and 41 deletions

View File

@@ -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'));
}
}