/** * This method is called before each cest class test method * * @param AcceptanceTester $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']); }
protected function loadFixtures() { $menuFixture = new MenuFixture(); $menuFixture->load(); $menuItemFixture = new MenuItemFixture(); $menuItemFixture->load(); }