From bc23882395dab64e912417f6c1ae0b8da34db909 Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 5 Sep 2018 10:44:36 -0600 Subject: [PATCH] Trying to get tests to pass - Debug the post-change type array --- admin/tests/PreferencesCommandTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin/tests/PreferencesCommandTest.php b/admin/tests/PreferencesCommandTest.php index a15ce8a828..b62a956f93 100644 --- a/admin/tests/PreferencesCommandTest.php +++ b/admin/tests/PreferencesCommandTest.php @@ -72,6 +72,8 @@ class PreferencesCommandTest extends CommandBase $this->assertArrayHasKey($this->preference_name, $post[static::APP]); $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); $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]);