diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-07-16 22:15:58 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-07-16 22:15:58 -0400 |
commit | 6c9b6a031c6d8a8474bc5e7a1717a5ae3bee1535 (patch) | |
tree | 21eec1f05deefefa54aa5b0f03c5ab7aa4360297 /engine/tests/api/plugins.php | |
parent | 2e0cc0343715adec8a0843750016f89acc3c2394 (diff) | |
parent | 037eacc4a5015dc048c4fff080349aa96a9b918e (diff) | |
download | elgg-6c9b6a031c6d8a8474bc5e7a1717a5ae3bee1535.tar.gz elgg-6c9b6a031c6d8a8474bc5e7a1717a5ae3bee1535.tar.bz2 |
Merge pull request #304 from sembrestels/donate-manifest
Code, Report issue and Donate links in manifest
Diffstat (limited to 'engine/tests/api/plugins.php')
-rw-r--r-- | engine/tests/api/plugins.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/engine/tests/api/plugins.php b/engine/tests/api/plugins.php index 8ecb0a46c..114f3991b 100644 --- a/engine/tests/api/plugins.php +++ b/engine/tests/api/plugins.php @@ -68,6 +68,9 @@ class ElggCorePluginsAPITest extends ElggCoreUnitTest { 'blurb' => 'A concise description.', 'description' => 'A longer, more interesting description.', 'website' => 'http://www.elgg.org/', + 'repository' => 'https://github.com/Elgg/Elgg', + 'bugtracker' => 'http://trac.elgg.org', + 'donations' => 'http://elgg.org/supporter.php', 'copyright' => '(C) Elgg Foundation 2011', 'license' => 'GNU General Public License version 2', @@ -164,6 +167,21 @@ class ElggCorePluginsAPITest extends ElggCoreUnitTest { $this->assertEqual($this->manifest18->getWebsite(), 'http://www.elgg.org/'); $this->assertEqual($this->manifest17->getWebsite(), 'http://www.elgg.org/'); } + + public function testElggPluginManifestGetRepository() { + $this->assertEqual($this->manifest18->getRepositoryURL(), 'https://github.com/Elgg/Elgg'); + $this->assertEqual($this->manifest17->getRepositoryURL(), ''); + } + + public function testElggPluginManifestGetBugtracker() { + $this->assertEqual($this->manifest18->getBugTrackerURL(), 'http://trac.elgg.org'); + $this->assertEqual($this->manifest17->getBugTrackerURL(), ''); + } + + public function testElggPluginManifestGetDonationsPage() { + $this->assertEqual($this->manifest18->getDonationsPageURL(), 'http://elgg.org/supporter.php'); + $this->assertEqual($this->manifest17->getDonationsPageURL(), ''); + } public function testElggPluginManifestGetCopyright() { $this->assertEqual($this->manifest18->getCopyright(), '(C) Elgg Foundation 2011'); |