示例#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');
 }
示例#2
0
 public function testGroup(FunctionalTester $I)
 {
     $I->wantTo('ensure that setting works');
     $I->amOnPage(Url::to(['/setting/group', 'id' => 'general']));
     $I->see('General Settings', 'h1');
     $I->amGoingTo('update site title and tag line');
     $I->fillField('input[name="Option[sitetitle][option_value]"]', 'My New Website');
     $I->fillField('input[name="Option[tagline][option_value]"]', 'My New Website Tagline');
     $I->click('Save');
     $I->expectTo('see success message');
     $I->see('Settings successfully saved.');
     Option::up('sitetitle', 'WritesDown');
     Option::up('tagline', 'CMS Built with Yii Framework');
 }