diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-10-08 21:52:34 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-10-08 21:52:34 -0400 |
commit | ba4bbf484d33fe24332ff63ac3b063f346a2a74c (patch) | |
tree | 5342f33dd095c43e2cc2bb6bcf635dd3d6f00820 /engine/tests/api/helpers.php | |
parent | 9acaf639b57e06178c92b8321012833c4e1fdb80 (diff) | |
download | elgg-ba4bbf484d33fe24332ff63ac3b063f346a2a74c.tar.gz elgg-ba4bbf484d33fe24332ff63ac3b063f346a2a74c.tar.bz2 |
Fixes #3942 fixed all the warnings and notices in the unit tests
Diffstat (limited to 'engine/tests/api/helpers.php')
-rw-r--r-- | engine/tests/api/helpers.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engine/tests/api/helpers.php b/engine/tests/api/helpers.php index 36d680d54..3f41400c8 100644 --- a/engine/tests/api/helpers.php +++ b/engine/tests/api/helpers.php @@ -166,7 +166,9 @@ class ElggCoreHelpersTest extends ElggCoreUnitTest { $this->assertFalse(isset($CONFIG->externals_map['js']['id1'])); foreach ($elements as $element) { - $this->assertFalse($element->name == 'id1'); + if (isset($element->name)) { + $this->assertFalse($element->name == 'id1'); + } } $result = elgg_unregister_js('id1'); @@ -180,7 +182,9 @@ class ElggCoreHelpersTest extends ElggCoreUnitTest { $this->assertFalse(isset($CONFIG->externals_map['js']['id2'])); foreach ($elements as $element) { - $this->assertFalse($element->name == 'id2'); + if (isset($element->name)) { + $this->assertFalse($element->name == 'id2'); + } } $this->assertTrue(isset($CONFIG->externals_map['js']['id3'])); |