Exemplo n.º 1
0
 /**
  * @param FunctionalTester $I
  */
 public function testUpload(FunctionalTester $I)
 {
     $I->wantTo('ensure that upload theme works');
     $I->amOnPage(Url::to(['/theme/upload']));
     $I->see('Upload New Theme', 'h1');
     $I->seeLink('Available Themes');
     $I->seeLink('Add New Theme');
     $I->click('Upload', '#theme-upload-form');
 }
Exemplo n.º 2
0
 /**
  * @param FunctionalTester $I
  */
 public function testView(FunctionalTester $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');
 }
Exemplo n.º 3
0
 /**
  * @param FunctionalTester $I
  */
 public function testIndex(FunctionalTester $I)
 {
     $I->wantTo('ensure that widget works');
     $I->amOnPage(Url::to(['/widget/index']));
     $I->see('Widgets', 'h1');
     $I->see('Available Widgets', 'h4');
     $I->see('Sidebar', 'h3');
     $I->seeLink('Add New Widget');
 }