Exemple #1
0
 /**
  * @param FunctionalTester\UserSteps $I
  *
  * @actor FunctionalTester\UserSteps
  *
  * @return void
  */
 public function passwordNotMatched(FunctionalTester\UserSteps $I)
 {
     $I->am('Normal User');
     $I->wantTo('update my password');
     $I->lookForwardTo('be able to change my password');
     $user = $I->createUser(1);
     $I->amLoggedAs($user);
     $I->amOnAction('UserController@getSettings');
     $I->fillField('password', '123');
     $I->fillField('password_confirmation', '1234');
     $I->click(trans('tinyissue.update'));
     $I->seeFormHasErrors();
     $I->selectOption('language', 'en');
     $I->fillField('password', 'newpass');
     $I->fillField('password_confirmation', 'newpass');
     $I->click(trans('tinyissue.update'));
     $I->logout();
     $I->login($user->email, 'newpass', $user->firstname);
 }