Пример #1
0
 /**
  * @param AcceptanceTester $I
  */
 public function testView(AcceptanceTester $I)
 {
     $I->wantTo('ensure that view user works');
     $I->amOnPage(Url::to(['/user/view', 'id' => 1]));
     $I->see('View User: superadmin', 'h1');
     $I->dontSeeLink('Update');
     $I->dontSeeLink('Delete');
     $I->amOnPage(Url::to(['/user/view', 'id' => 5]));
     $I->see('View User: contributor', 'h1');
     $I->seeLink('Update');
     $I->seeLink('Delete');
 }