fixed all tests
This commit is contained in:
@ -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');
|
||||
|
||||
Reference in New Issue
Block a user