tests/codeception/backend/functional/MenuCest.php
/**
     * This method is called before each cest class test method
     *
     * @param FunctionalTester $I
     */
This method is called before each cest class test method
@param FunctionalTester $I
This method is called before each cest class test method @param FunctionalTester $I
public function _before($I)
    {
        $menuFixture = new MenuFixture();
        $menuFixture->load();
        $menuItemFixture = new MenuItemFixture();
        $menuItemFixture->load();
        $loginPage = LoginPage::openBy($I);
        $loginPage->submit(['username' => 'administrator', 'password' => 'administrator']);
    }
public function _before ( $ I ) { $ menuFixture = new MenuFixture ( ) ; $ menuFixture -> load ( ) ; $ menuItemFixture = new MenuItemFixture ( ) ; $ menuItemFixture -> load ( ) ; $ loginPage = LoginPage :: openBy ( $ I ) ; $ loginPage -> submit ( [ 'username' => 'administrator' , 'password' => 'administrator' ] ) ; }
This method is called before each cest class test method
 @param FunctionalTester $I
This method is called before each cest class test method @param FunctionalTester $I