fixed all tests

This commit is contained in:
Antonio Ramirez
2016-12-11 21:34:22 +01:00
parent 4588d77129
commit 4c9b9671b5
37 changed files with 214 additions and 135 deletions

View File

@ -19,8 +19,8 @@ class RegistrationCest
public function _after(FunctionalTester $I)
{
\Yii::$container->set(Module::className(), [
'enableConfirmation' => true,
'enableGeneratingPassword' => false,
'enableEmailConfirmation' => true,
'generatePasswords' => false,
]);
}
@ -31,8 +31,8 @@ class RegistrationCest
public function testRegistration(FunctionalTester $I)
{
\Yii::$container->set(Module::className(), [
'enableConfirmation' => false,
'enableGeneratingPassword' => false,
'enableEmailConfirmation' => false,
'generatePasswords' => false,
]);
$page = RegistrationPage::openBy($I);
@ -67,7 +67,7 @@ class RegistrationCest
public function testRegistrationWithConfirmation(FunctionalTester $I)
{
\Yii::$container->set(Module::className(), [
'enableConfirmation' => true,
'enableEmailConfirmation' => true,
]);
$page = RegistrationPage::openBy($I);
$page->register('tester@example.com', 'tester', 'tester');
@ -88,8 +88,8 @@ class RegistrationCest
public function testRegistrationWithoutPassword(FunctionalTester $I)
{
\Yii::$container->set(Module::className(), [
'enableConfirmation' => false,
'enableGeneratingPassword' => true,
'enableEmailConfirmation' => false,
'generatePasswords' => true,
]);
$page = RegistrationPage::openBy($I);
$page->register('tester@example.com', 'tester');