public function installJoomlaMultilingualSite($languages = array(), $databaseName = null, $databasePrefix = null)
	{
		if (!$languages)
		{
			// If no language is passed French will be installed by default
			$languages[] = 'French';
		}

		$this->installJoomla($databaseName, $databasePrefix);

		$this->debug('I go to Install Languages page');
		$this->click(array('id' => 'instLangs'));
		$this->waitForText('Install Language packages', TIMEOUT, array('xpath' => '//h3'));

		foreach ($languages as $language)
		{
			$this->debug('I mark the checkbox of the language: ' . $language);
			$this->click(array('xpath' => "//label[contains(text()[normalize-space()], '$language')]"));
		}

		$this->click(array('link' => 'Next'));
		$this->waitForText('Multilingual', TIMEOUT, array('xpath' => '//h3'));
		$this->selectOptionInRadioField('Activate the multilingual feature', 'Yes');
		$this->waitForElementVisible(array('id' => 'jform_activatePluginLanguageCode-lbl'));
		$this->selectOptionInRadioField('Install localised content', 'Yes');
		$this->selectOptionInRadioField('Enable the language code plugin', 'Yes');
		$this->click(array('link' => 'Next'));

		$this->waitForText('Congratulations! Joomla! is now installed.', TIMEOUT, array('xpath' => '//h3'));
		$this->debug('Removing Installation Folder');
		$this->click(array('xpath' => "//input[@value='Remove \"installation\" folder']"));

		// @todo https://github.com/joomla-projects/joomla-browser/issues/45
		$this->wait(2);

		$this->debug('Joomla is now installed');
		$this->see('Congratulations! Joomla! is now installed.', '//h3');
	}
public function installJoomlaMultilingualSite($languages = array(), $databaseName = null, $databasePrefix = null)
	{
		if (!$languages)
		{
			// If no language is passed French will be installed by default
			$languages[] = 'French';
		}

		$this->installJoomla($databaseName, $databasePrefix);

		$this->debug('I go to Install Languages page');
		$this->click(array('id' => 'instLangs'));
		$this->waitForText('Install Language packages', TIMEOUT, array('xpath' => '//h3'));

		foreach ($languages as $language)
		{
			$this->debug('I mark the checkbox of the language: ' . $language);
			$this->click(array('xpath' => "//label[contains(text()[normalize-space()], '$language')]"));
		}

		$this->click(array('link' => 'Next'));
		$this->waitForText('Multilingual', TIMEOUT, array('xpath' => '//h3'));
		$this->selectOptionInRadioField('Activate the multilingual feature', 'Yes');
		$this->waitForElementVisible(array('id' => 'jform_activatePluginLanguageCode-lbl'));
		$this->selectOptionInRadioField('Install localised content', 'Yes');
		$this->selectOptionInRadioField('Enable the language code plugin', 'Yes');
		$this->click(array('link' => 'Next'));

		$this->waitForText('Congratulations! Joomla! is now installed.', TIMEOUT, array('xpath' => '//h3'));
		$this->debug('Removing Installation Folder');
		$this->click(array('xpath' => "//input[@value='Remove \"installation\" folder']"));

		// @todo https://github.com/joomla-projects/joomla-browser/issues/45
		$this->wait(2);

		$this->debug('Joomla is now installed');
		$this->see('Congratulations! Joomla! is now installed.', '//h3');
	}
public function installJoomlaMultilingualSite ( $ languages = array ( ) , $ databaseName = null , $ databasePrefix = null ) { if ( ! $ languages ) { // If no language is passed French will be installed by default $ languages [ ] = 'French' ; } $ this -> installJoomla ( $ databaseName , $ databasePrefix ) ; $ this -> debug ( 'I go to Install Languages page' ) ; $ this -> click ( array ( 'id' => 'instLangs' ) ) ; $ this -> waitForText ( 'Install Language packages' , TIMEOUT , array ( 'xpath' => '//h3' ) ) ; foreach ( $ languages as $ language ) { $ this -> debug ( 'I mark the checkbox of the language: ' . $ language ) ; $ this -> click ( array ( 'xpath' => "//label[contains(text()[normalize-space()], '$language')]" ) ) ; } $ this -> click ( array ( 'link' => 'Next' ) ) ; $ this -> waitForText ( 'Multilingual' , TIMEOUT , array ( 'xpath' => '//h3' ) ) ; $ this -> selectOptionInRadioField ( 'Activate the multilingual feature' , 'Yes' ) ; $ this -> waitForElementVisible ( array ( 'id' => 'jform_activatePluginLanguageCode-lbl' ) ) ; $ this -> selectOptionInRadioField ( 'Install localised content' , 'Yes' ) ; $ this -> selectOptionInRadioField ( 'Enable the language code plugin' , 'Yes' ) ; $ this -> click ( array ( 'link' => 'Next' ) ) ; $ this -> waitForText ( 'Congratulations! Joomla! is now installed.' , TIMEOUT , array ( 'xpath' => '//h3' ) ) ; $ this -> debug ( 'Removing Installation Folder' ) ; $ this -> click ( array ( 'xpath' => "//input[@value='Remove \"installation\" folder']" ) ) ; // @todo https://github.com/joomla-projects/joomla-browser/issues/45 $ this -> wait ( 2 ) ; $ this -> debug ( 'Joomla is now installed' ) ; $ this -> see ( 'Congratulations! Joomla! is now installed.' , '//h3' ) ; }
Installs Joomla with Multilingual Feature active

@param   array        $languages       Array containing the language names to be installed
@param   string|null  $databaseName    Optional Database Name. If not passed the one in acceptance.suite.yml will be used
@param   string|null  $databasePrefix  Optional Database Prefix. If not passed the one in acceptance.suite.yml will be used

@example: $this->installJoomlaMultilingualSite(['Spanish', 'French']);

@return  void

@since   3.0.0
@throws  \Exception
Installs Joomla with Multilingual Feature active