mirror of
https://github.com/friendica/friendica
synced 2025-04-22 17:10:11 +00:00
Added string type-hint for get() and a test case for it
This commit is contained in:
parent
aa249adf6d
commit
4af08d82b2
4 changed files with 14 additions and 2 deletions
|
@ -157,6 +157,12 @@ class ConfigCacheTest extends MockedTest
|
|||
'key1' => 'value1',
|
||||
'key2' => 'value2',
|
||||
], $configCache->get('system'));
|
||||
|
||||
// explicit null as key
|
||||
$this->assertEquals([
|
||||
'key1' => 'value1',
|
||||
'key2' => 'value2',
|
||||
], $configCache->get('system', null));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue