mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 20:31:31 +02:00
Trying to get tests to pass
- Try using an intermediate variable
This commit is contained in:
parent
6b0e71a644
commit
4a6e01a217
@ -74,9 +74,11 @@ class PreferencesCommandTest extends CommandBase
|
|||||||
// At type level
|
// At type level
|
||||||
// DEBUG
|
// DEBUG
|
||||||
echo "\n\n". __METHOD__ . "($type) after:\n";
|
echo "\n\n". __METHOD__ . "($type) after:\n";
|
||||||
|
$post_app = $post_pref->$type;
|
||||||
echo implode(', ',array_keys($post_pref->$type))."\n";
|
echo implode(', ',array_keys($post_pref->$type))."\n";
|
||||||
print_r($post_pref->$type[static::APP]);
|
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";
|
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";
|
||||||
$this->assertArrayHasKey($this->preference_name, $post_pref->$type[static::APP],
|
$this->assertArrayHasKey($this->preference_name, $post_pref->$type[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_pref->$type[static::APP][$this->preference_name]);
|
$this->assertEquals($set[$this->preference_name], $post_pref->$type[static::APP][$this->preference_name]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user