Ejemplo n.º 1
0
 public function testGroup(AcceptanceTester $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][value]"]', 'My New Website');
     $I->fillField('input[name="Option[tagline][value]"]', 'My New Website Tagline');
     $I->click('Save');
     if (method_exists($I, 'wait')) {
         $I->wait(3);
     }
     $I->expectTo('see success message');
     $I->see('Settings successfully saved.');
     Option::up('sitetitle', 'WritesDown');
     Option::up('tagline', 'CMS Built with Yii Framework');
 }