public function createCategory($title, $extension = '')
	{
		$this->debug('Category creation in /administrator/');
		$this->doAdministratorLogin();

		if (!empty($extension))
		{
			$extension = '&extension=' . $extension;
		}

		$this->amOnPage('administrator/index.php?option=com_categories' . $extension);

		$this->waitForElement(array('class' => 'page-title'));
		$this->checkForPhpNoticesOrWarnings();

		$this->debug('Click new category button');
		$this->click($this->locator->adminToolbarButtonNew);

		$this->waitForElement(array('class' => 'page-title'));

		$this->checkForPhpNoticesOrWarnings();
		$this->fillField(array('id' => 'jform_title'), $title);

		$this->debug('Click new category apply button');
		$this->click($this->locator->adminToolbarButtonApply);

		$this->debug('see a success message after saving the category');

		$this->see('Category saved', '#system-message-container');
		$this->checkForPhpNoticesOrWarnings();
	}
public function createCategory($title, $extension = '')
	{
		$this->debug('Category creation in /administrator/');
		$this->doAdministratorLogin();

		if (!empty($extension))
		{
			$extension = '&extension=' . $extension;
		}

		$this->amOnPage('administrator/index.php?option=com_categories' . $extension);

		$this->waitForElement(array('class' => 'page-title'));
		$this->checkForPhpNoticesOrWarnings();

		$this->debug('Click new category button');
		$this->click($this->locator->adminToolbarButtonNew);

		$this->waitForElement(array('class' => 'page-title'));

		$this->checkForPhpNoticesOrWarnings();
		$this->fillField(array('id' => 'jform_title'), $title);

		$this->debug('Click new category apply button');
		$this->click($this->locator->adminToolbarButtonApply);

		$this->debug('see a success message after saving the category');

		$this->see('Category saved', '#system-message-container');
		$this->checkForPhpNoticesOrWarnings();
	}
public function createCategory ( $ title , $ extension = '' ) { $ this -> debug ( 'Category creation in /administrator/' ) ; $ this -> doAdministratorLogin ( ) ; if ( ! empty ( $ extension ) ) { $ extension = '&extension=' . $ extension ; } $ this -> amOnPage ( 'administrator/index.php?option=com_categories' . $ extension ) ; $ this -> waitForElement ( array ( 'class' => 'page-title' ) ) ; $ this -> checkForPhpNoticesOrWarnings ( ) ; $ this -> debug ( 'Click new category button' ) ; $ this -> click ( $ this -> locator -> adminToolbarButtonNew ) ; $ this -> waitForElement ( array ( 'class' => 'page-title' ) ) ; $ this -> checkForPhpNoticesOrWarnings ( ) ; $ this -> fillField ( array ( 'id' => 'jform_title' ) , $ title ) ; $ this -> debug ( 'Click new category apply button' ) ; $ this -> click ( $ this -> locator -> adminToolbarButtonApply ) ; $ this -> debug ( 'see a success message after saving the category' ) ; $ this -> see ( 'Category saved' , '#system-message-container' ) ; $ this -> checkForPhpNoticesOrWarnings ( ) ; }
Create a new category

@param   string  $title      Title of the new category
@param   string  $extension  Optional extension to use

@return  void

@since   3.7.5
@throws  \Exception
Create a new category