Exemple #1
0
 /**
  * @param FunctionalTester $I
  */
 public function testView(FunctionalTester $I)
 {
     $I->wantTo('ensure that view post-type works');
     $I->amOnPage(Url::to(['/post-type/view', 'id' => 1]));
     $I->see('View Post Type: Post', 'h1');
     $I->see('Taxonomies', 'h3');
     $I->amOnPage(Url::to(['/post-type/view', 'id' => 2]));
     $I->see('View Post Type: Page', 'h1');
     $I->dontSee('Taxonomies', 'h3');
 }