projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(dev/core#174) api_v3_SettingTest - Remove unused cache reference
[civicrm-core.git]
/
tests
/
phpunit
/
api
/
v3
/
SettingTest.php
diff --git
a/tests/phpunit/api/v3/SettingTest.php
b/tests/phpunit/api/v3/SettingTest.php
index a6b2a817a52bd5aebb1990d1131944a26ba52517..1c41fd95658b9b6629dca2e2d79b45fbeebf2b30 100644
(file)
--- a/
tests/phpunit/api/v3/SettingTest.php
+++ b/
tests/phpunit/api/v3/SettingTest.php
@@
-351,9
+351,6
@@
class api_v3_SettingTest extends CiviUnitTestCase {
public function testGetExtensionSetting() {
$this->hookClass->setHook('civicrm_alterSettingsFolders', array($this, 'setExtensionMetadata'));
$data = NULL;
public function testGetExtensionSetting() {
$this->hookClass->setHook('civicrm_alterSettingsFolders', array($this, 'setExtensionMetadata'));
$data = NULL;
- // the caching of data to all duplicates the caching of data to the empty string
- CRM_Core_BAO_Cache::setItem($data, 'CiviCRM setting Spec', 'All');
- CRM_Core_BAO_Cache::setItem($data, 'CiviCRM setting Specs', 'settingsMetadata__');
Civi::cache('settings')->flush();
$fields = $this->callAPISuccess('setting', 'getfields', array('filters' => array('group_name' => 'Test Settings')));
$this->assertArrayHasKey('test_key', $fields['values']);
Civi::cache('settings')->flush();
$fields = $this->callAPISuccess('setting', 'getfields', array('filters' => array('group_name' => 'Test Settings')));
$this->assertArrayHasKey('test_key', $fields['values']);