From 6b0e71a6447e72b9b89e808031baa4ed927ddd8d Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 5 Sep 2018 11:06:34 -0600 Subject: [PATCH] Trying to get tests to pass - More debug on the post-change type array --- admin/tests/PreferencesCommandTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/admin/tests/PreferencesCommandTest.php b/admin/tests/PreferencesCommandTest.php index b62a956f93..a1ff36a3a9 100644 --- a/admin/tests/PreferencesCommandTest.php +++ b/admin/tests/PreferencesCommandTest.php @@ -73,7 +73,10 @@ class PreferencesCommandTest extends CommandBase $this->assertEquals($set[$this->preference_name], $post[static::APP][$this->preference_name]); // At type level // DEBUG - echo "\n\n". __METHOD__ . "($type) after:\n"; print_r($post_pref->$type); + echo "\n\n". __METHOD__ . "($type) after:\n"; + echo implode(', ',array_keys($post_pref->$type))."\n"; + print_r($post_pref->$type[static::APP]); + echo "Does it have the key? " . (array_key_exists($this->preference_name, $post_pref->$type[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]);