Skip to content

Commit eaded31

Browse files
committed
Added check if repo has ending slash
1 parent 0999fe6 commit eaded31

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/JoomlaBrowser.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,13 @@ public function installExtensionFromFolder($path, $type = 'Extension')
335335
$I->waitForText('Extensions: Install','30', ['css' => 'H1']);
336336
$I->click(['link' => 'Install from Folder']);
337337
$this->debug('I enter the Path');
338+
339+
//Make sure path has an ending slash
340+
if (substr($path, -1) != "/")
341+
{
342+
$path = $path . "/";
343+
}
344+
338345
$I->fillField(['id' => 'install_directory'], $path);
339346
// @todo: we need to find a better locator for the following Install button
340347
$I->click(['xpath' => "//button[contains(@onclick,'Joomla.submitbutton3()')]"]); // Install button

0 commit comments

Comments
 (0)