Exemplo n.º 1
0
 /**
  * @test
  * it should be able to visit the home page multiple times
  */
 public function it_should_be_able_to_visit_the_home_page_multiple_times(WpmoduleTester $I)
 {
     $I->amOnPage('/');
     $I->amOnPage('/');
     $I->amOnPage('/');
     $I->amOnPage('/');
 }
Exemplo n.º 2
0
 /**
  * @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');
 }
Exemplo n.º 3
0
 /**
  * @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');
 }