original_string: public function installExtensionFromFileUpload($file, $type = 'Extension')
  	{
  		$this->amOnPage('/administrator/index.php?option=com_installer');
  		$this->waitForText('Extensions: Install', '30', array('css' => 'H1'));
  		$this->click(array('link' => 'Upload Package File'));
  
  		$this->debug('I make sure legacy uploader is visible');
  		$this->executeJS('document.getElementById("legacy-uploader").style.display="block";');
  
  		$this->debug('I enter the file input');
  		$this->attachFile(array('id' => 'install_package'), $file);
  
  		$this->waitForText('was successful', '30', array('id' => 'system-message-container'));
  
  		if ($type == 'Extension')
  		{
  			$this->debug('Extension successfully installed.');
  		}
  
  		if ($type == 'Plugin')
  		{
  			$this->debug('Installing plugin was successful.');
  		}
  
  		if ($type == 'Package')
  		{
  			$this->debug('Installation of the package was successful.');
  		}
  	}
code: public function installExtensionFromFileUpload($file, $type = 'Extension')
  	{
  		$this->amOnPage('/administrator/index.php?option=com_installer');
  		$this->waitForText('Extensions: Install', '30', array('css' => 'H1'));
  		$this->click(array('link' => 'Upload Package File'));
  
  		$this->debug('I make sure legacy uploader is visible');
  		$this->executeJS('document.getElementById("legacy-uploader").style.display="block";');
  
  		$this->debug('I enter the file input');
  		$this->attachFile(array('id' => 'install_package'), $file);
  
  		$this->waitForText('was successful', '30', array('id' => 'system-message-container'));
  
  		if ($type == 'Extension')
  		{
  			$this->debug('Extension successfully installed.');
  		}
  
  		if ($type == 'Plugin')
  		{
  			$this->debug('Installing plugin was successful.');
  		}
  
  		if ($type == 'Package')
  		{
  			$this->debug('Installation of the package was successful.');
  		}
  	}
code_tokens: public function installExtensionFromFileUpload ( $ file , $ type = 'Extension' ) { $ this -> amOnPage ( '/administrator/index.php?option=com_installer' ) ; $ this -> waitForText ( 'Extensions: Install' , '30' , array ( 'css' => 'H1' ) ) ; $ this -> click ( array ( 'link' => 'Upload Package File' ) ) ; $ this -> debug ( 'I make sure legacy uploader is visible' ) ; $ this -> executeJS ( 'document.getElementById("legacy-uploader").style.display="block";' ) ; $ this -> debug ( 'I enter the file input' ) ; $ this -> attachFile ( array ( 'id' => 'install_package' ) , $ file ) ; $ this -> waitForText ( 'was successful' , '30' , array ( 'id' => 'system-message-container' ) ) ; if ( $ type == 'Extension' ) { $ this -> debug ( 'Extension successfully installed.' ) ; } if ( $ type == 'Plugin' ) { $ this -> debug ( 'Installing plugin was successful.' ) ; } if ( $ type == 'Package' ) { $ this -> debug ( 'Installation of the package was successful.' ) ; } }
docstring: Installs a Extension in Joomla using the file upload option
  
  @param   string  $file  Path to the file in the _data folder
  @param   string  $type  Type of Extension
  
  {@internal doAdminLogin() before}
  
  @return  void
  @throws  \Exception
docstring_tokens: Installs a Extension in Joomla using the file upload option