diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-14 11:25:47 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-14 11:25:47 +0000 |
commit | 6f6f9abc3d45dc305ab8ea8dfd53f7f975982228 (patch) | |
tree | a9479ccfb668738246a2107a82e9ff8c00b99c16 /engine/tests/api/helpers.php | |
parent | 8cf8c5486e22b0d1c5ffb5caa60268016e42f27e (diff) | |
download | elgg-6f6f9abc3d45dc305ab8ea8dfd53f7f975982228.tar.gz elgg-6f6f9abc3d45dc305ab8ea8dfd53f7f975982228.tar.bz2 |
fixed filtering of external files array and suppressed warning in external files unit test
git-svn-id: http://code.elgg.org/elgg/trunk@8998 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/tests/api/helpers.php')
-rw-r--r-- | engine/tests/api/helpers.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/tests/api/helpers.php b/engine/tests/api/helpers.php index 1362b3c9d..461627547 100644 --- a/engine/tests/api/helpers.php +++ b/engine/tests/api/helpers.php @@ -109,7 +109,7 @@ class ElggCoreHelpersTest extends ElggCoreUnitTest { $this->assertIdentical('http://test1.com', $CONFIG->externals['js']['key']->url); // send a bad url - $result = elgg_register_js(); + $result = @elgg_register_js('bad'); $this->assertFalse($result); } @@ -140,7 +140,7 @@ class ElggCoreHelpersTest extends ElggCoreUnitTest { $result = elgg_unregister_js('id1'); $this->assertTrue($result); - $this->assertNULL($CONFIG->externals['js']['head']['id1']); + @$this->assertNULL($CONFIG->externals['js']['head']['id1']); $result = elgg_unregister_js('id1'); $this->assertFalse($result); |