diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-06 15:23:01 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-06 15:23:01 +0000 |
commit | 4b2684e36e226315c5bd4b93f49ab2a5fc121303 (patch) | |
tree | f9927c38da56d274dcf732fda2df05896d0749e5 /engine/tests | |
parent | 28bb5ab4b12170f7831d584c809e202e07b55a19 (diff) | |
download | elgg-4b2684e36e226315c5bd4b93f49ab2a5fc121303.tar.gz elgg-4b2684e36e226315c5bd4b93f49ab2a5fc121303.tar.bz2 |
Renamed 'elgg' manifest requirment to 'elgg_version' to be more in line with the current options. Removed assignments in if statements. 1.7 manifest files properly show elgg_version as a requirement.
git-svn-id: http://code.elgg.org/elgg/trunk@7550 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/tests')
-rw-r--r-- | engine/tests/api/plugins.php | 10 | ||||
-rw-r--r-- | engine/tests/test_files/plugin_18/manifest.xml | 2 |
2 files changed, 8 insertions, 4 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() { diff --git a/engine/tests/test_files/plugin_18/manifest.xml b/engine/tests/test_files/plugin_18/manifest.xml index 182117a50..454a418f6 100644 --- a/engine/tests/test_files/plugin_18/manifest.xml +++ b/engine/tests/test_files/plugin_18/manifest.xml @@ -10,7 +10,7 @@ <license>GNU Public License version 2</license> <requires> - <type>elgg</type> + <type>elgg_version</type> <version>3009030802</version> <comparison>lt</comparison> </requires> |