From 7a53eba1a55f0c1a4d8c9fb51604686534ec0b69 Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 5 Sep 2018 11:33:40 -0600 Subject: [PATCH] Trying to get tests to pass - Need the app on the intermediate variable --- admin/tests/PreferencesCommandTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/tests/PreferencesCommandTest.php b/admin/tests/PreferencesCommandTest.php index 58555a7af8..4e537ae79c 100644 --- a/admin/tests/PreferencesCommandTest.php +++ b/admin/tests/PreferencesCommandTest.php @@ -78,7 +78,7 @@ class PreferencesCommandTest extends CommandBase echo implode(', ',array_keys($post_pref->$type))."\n"; print_r($post_pref->$type[static::APP]); echo "Does '".static::APP."' have the key? " . (array_key_exists($this->preference_name, $post_pref->$type[static::APP]) ? 'Yes' : 'No') . "\n"; - echo "Does post_app have the key? " . (array_key_exists($this->preference_name, $post_app) ? 'Yes' : 'No') . "\n"; + echo "Does post_app have the key? " . (array_key_exists($this->preference_name, $post_app[static::APP]) ? 'Yes' : 'No') . "\n"; $this->assertArrayHasKey($this->preference_name, $post_pref->$type[static::APP], "$type preferences does not have {$this->preference_name}"); $this->assertEquals($set[$this->preference_name], $post_pref->$type[static::APP][$this->preference_name]);