aboutsummaryrefslogtreecommitdiff
path: root/engine/tests/api/plugins.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/tests/api/plugins.php')
-rw-r--r--engine/tests/api/plugins.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/engine/tests/api/plugins.php b/engine/tests/api/plugins.php
index 61e2cdde6..c99609559 100644
--- a/engine/tests/api/plugins.php
+++ b/engine/tests/api/plugins.php
@@ -72,7 +72,7 @@ class ElggCorePluginsAPITest extends ElggCoreUnitTest {
'license' => 'GNU Public License version 2',
'requires' => array(
- array('type' => 'elgg', 'version' => '3009030802', 'comparison' => 'lt'),
+ array('type' => 'elgg_version', 'version' => '3009030802', 'comparison' => 'lt'),
array('type' => 'elgg_release', 'version' => '1.8-svn'),
array('type' => 'php_extension', 'name' => 'gd'),
array('type' => 'php_ini', 'name' => 'short_open_tag', 'value' => 'off'),
@@ -175,7 +175,7 @@ class ElggCorePluginsAPITest extends ElggCoreUnitTest {
public function testElggPluginManifestGetRequires() {
$requires = array(
- array('type' => 'elgg', 'version' => '3009030802', 'comparison' => 'lt'),
+ array('type' => 'elgg_version', 'version' => '3009030802', 'comparison' => 'lt'),
array('type' => 'elgg_release', 'version' => '1.8-svn', 'comparison' => 'ge'),
array('type' => 'php_extension', 'name' => 'gd', 'version' => '', 'comparison' => '='),
array('type' => 'php_ini', 'name' => 'short_open_tag', 'value' => 'off', 'comparison' => '='),
@@ -187,7 +187,11 @@ class ElggCorePluginsAPITest extends ElggCoreUnitTest {
$this->assertEqual($this->package18->getManifest()->getRequires(), $requires);
- $this->assertEqual($this->package17->getManifest()->getRequires(), array());
+ $requires = array(
+ array('type' => 'elgg_version', 'version' => '2009030702', 'comparison' => 'ge')
+ );
+
+ $this->assertEqual($this->package17->getManifest()->getRequires(), $requires);
}
public function testElggPluginManifestGetDescription() {