From cbc6eb680efb2394a1715da24c29a669414a2b05 Mon Sep 17 00:00:00 2001 From: javier gomez Date: Thu, 6 Aug 2015 12:39:43 +0200 Subject: [PATCH] Allow to install other types of extension This will allow to do installExtensionFromFolder('.../', 'Module'); or installExtensionFromFolder('.../', 'Language'); --- src/JoomlaBrowser.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/JoomlaBrowser.php b/src/JoomlaBrowser.php index f21afe0..1484a29 100644 --- a/src/JoomlaBrowser.php +++ b/src/JoomlaBrowser.php @@ -272,15 +272,9 @@ public function installExtensionFromFolder($path, $type = 'Extension') // @todo: we need to find a better locator for the following Install button $I->click(['xpath' => "//input[contains(@onclick,'Joomla.submitbutton3()')]"]); // Install button $I->waitForText('was successful','30', ['id' => 'system-message-container']); - if ($type == 'Extension') - { - $this->debug('Extension successfully installed from ' . $path); - } - if ($type == 'Plugin') - { - $this->debug('Installing plugin was successful.' . $path); - } + $this->debug("$type successfully installed from $path"); } + /** * Installs a Extension in Joomla that is located in a url *