Skip to content

Commit cbc6eb6

Browse files
committed
Allow to install other types of extension
This will allow to do installExtensionFromFolder('.../', 'Module'); or installExtensionFromFolder('.../', 'Language');
1 parent 4b46642 commit cbc6eb6

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/JoomlaBrowser.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -272,15 +272,9 @@ public function installExtensionFromFolder($path, $type = 'Extension')
272272
// @todo: we need to find a better locator for the following Install button
273273
$I->click(['xpath' => "//input[contains(@onclick,'Joomla.submitbutton3()')]"]); // Install button
274274
$I->waitForText('was successful','30', ['id' => 'system-message-container']);
275-
if ($type == 'Extension')
276-
{
277-
$this->debug('Extension successfully installed from ' . $path);
278-
}
279-
if ($type == 'Plugin')
280-
{
281-
$this->debug('Installing plugin was successful.' . $path);
282-
}
275+
$this->debug("$type successfully installed from $path");
283276
}
277+
284278
/**
285279
* Installs a Extension in Joomla that is located in a url
286280
*

0 commit comments

Comments
 (0)