I'm trying to login to Joomla backend before all tests in my Cest Class.
I'm using the Joomla Browser Module for that: https://github.com/joomla-projects/joomla-browser
When using it inside the cest class the login gets performed before every test, which is not wanted:
public function _before(AcceptanceTester $I)
{
$I->doAdministratorLogin();
}
When adding it to the Acceptance Helper like this:
namespace Helper;
class Acceptance extends \Codeception\Module
{
public function _beforeSuite($settings = array()) {
$I = $this;
$I->doAdministratorLogin();
}
}
I get
Call to undefined method Helper\Acceptance::doAdministratorLogin()