mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Got tests to pass, cleanup debug
This commit is contained in:
parent
c90927a306
commit
87ff796a09
@ -72,14 +72,8 @@ class PreferencesCommandTest extends CommandBase
|
|||||||
$this->assertArrayHasKey($this->preference_name, $post[static::APP]);
|
$this->assertArrayHasKey($this->preference_name, $post[static::APP]);
|
||||||
$this->assertEquals($set[$this->preference_name], $post[static::APP][$this->preference_name]);
|
$this->assertEquals($set[$this->preference_name], $post[static::APP][$this->preference_name]);
|
||||||
// At type level
|
// At type level
|
||||||
// DEBUG
|
|
||||||
echo "\n\n". __METHOD__ . "($type) after:\n";
|
|
||||||
// Get type as an array since direct sub-access doesn't work in 5.6
|
// Get type as an array since direct sub-access doesn't work in 5.6
|
||||||
$post_app = $post_pref->$type;
|
$post_app = $post_pref->$type;
|
||||||
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[static::APP]) ? 'Yes' : 'No') . "\n";
|
|
||||||
$this->assertArrayHasKey($this->preference_name, $post_app[static::APP],
|
$this->assertArrayHasKey($this->preference_name, $post_app[static::APP],
|
||||||
"$type preferences does not have {$this->preference_name}");
|
"$type preferences does not have {$this->preference_name}");
|
||||||
$this->assertEquals($set[$this->preference_name], $post_app[static::APP][$this->preference_name]);
|
$this->assertEquals($set[$this->preference_name], $post_app[static::APP][$this->preference_name]);
|
||||||
|
Loading…
Reference in New Issue
Block a user