/**
* Returns the license
*
- * @return sting
+ * @return string
*/
public function getLicense() {
// license vs licence. Use license.
/**
* Returns the repository url
*
- * @return sting
+ * @return string
*/
- public function getRepository() {
+ public function getRepositoryURL() {
return $this->parser->getAttribute('repository');
}
/**
* Returns the bug tracker page
*
- * @return sting
+ * @return string
*/
public function getBugTracker() {
return $this->parser->getAttribute('bugtracker');
/**
* Returns the donations page
*
- * @return sting
+ * @return string
*/
public function getDonationsPage() {
return $this->parser->getAttribute('donations');
}
public function testElggPluginManifestGetRepository() {
- $this->assertEqual($this->manifest18->getRepository(), 'https://github.com/Elgg/Elgg');
- $this->assertEqual($this->manifest17->getRepository(), '');
+ $this->assertEqual($this->manifest18->getRepositoryURL(), 'https://github.com/Elgg/Elgg');
+ $this->assertEqual($this->manifest17->getRepositoryURL(), '');
}
public function testElggPluginManifestGetBugtracker() {
));
$resources = array(
- 'repository' => $plugin->getManifest()->getRepository(),
+ 'repository' => $plugin->getManifest()->getRepositoryURL(),
'bugtracker' => $plugin->getManifest()->getBugTracker(),
'donate' => $plugin->getManifest()->getDonationsPage(),
);