/** * @test * it should allow accessing a post edit page */ public function it_should_allow_accessing_a_post_edit_page(WpmoduleTester $I) { $id = $I->havePostInDatabase(); $I->loginAsAdmin(); $I->amEditingPostWithId($id); $I->seeElement('body.wp-admin.post-php.post-type-post'); }
/** * @test * it should be able to log in and access the admin area */ public function it_should_be_able_to_log_in_and_access_the_admin_area(WpmoduleTester $I) { $I->loginAsAdmin(); $I->amOnAdminPage('/'); $I->seeElement('body.wp-admin'); }