common\tests\ModulesSettingsTest::testFetchingSettingsCallsTheDatabaseOnce PHP Метод

testFetchingSettingsCallsTheDatabaseOnce() публичный Метод

    public function testFetchingSettingsCallsTheDatabaseOnce()
    {
        $modulesSettings = new ModulesSettings($this->getDatabaseMock(), new Pool(new MemoryStore()));
        $modulesSettings->get('Core', 'theme', 'triton');
        $modulesSettings->get('Core', 'time_format', 'H:i');
        $modulesSettings->get('Blog', 'spam_filter', false);
    }