Skip to content

Commit d1a8fbd

Browse files
author
Igor Chepurnoy
authored
Merge pull request #7 from morontt/example-domain
use example domain
2 parents 6cbcb69 + b2e2138 commit d1a8fbd

File tree

9 files changed

+18
-18
lines changed

9 files changed

+18
-18
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ the installed application. You only need to do these once for all.
8181

8282

8383
####To login into the application, use the following credentials:
84-
- email - `admin@mail.com`
84+
- email - `admin@example.org`
8585
- password - `123123`
8686

8787
TESTING

commands/AppController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* ~~~
1616
* php yii app/generate-sitemap - Sitemap composing
1717
* php yii app/clear-table User - Delete all data from specific table
18-
* php yii app/assign-role-to-user admin admin@mail.com - Assign role to the user
18+
* php yii app/assign-role-to-user admin admin@example.org - Assign role to the user
1919
* ~~~
2020
*
2121
* @package app\commands
@@ -91,4 +91,4 @@ public function actionAssignRoleToUser($roleName, $email)
9191

9292
return self::EXIT_CODE_NORMAL;
9393
}
94-
}
94+
}

config/common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
],
4646
],
4747
'params' => [
48-
'adminEmail' => 'admin@example.com',
48+
'adminEmail' => 'admin@example.org',
4949
'user.passwordResetTokenExpire' => 3600,
5050
],
5151
];

migrations/m160805_074305_add_admin_user.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function up()
1313
'username' => 'admin',
1414
'authKey' => Yii::$app->getSecurity()->generateRandomString(),
1515
'passwordHash' => Yii::$app->getSecurity()->generatePasswordHash(123123),
16-
'email' => 'admin@mail.com',
16+
'email' => 'admin@example.org',
1717
'status' => 1,
1818
'createdAt' => time(),
1919
'updatedAt' => time(),
@@ -22,6 +22,6 @@ public function up()
2222

2323
public function down()
2424
{
25-
$this->delete('{{%User}}', ['email' => 'admin@mail.com']);
25+
$this->delete('{{%User}}', ['email' => 'admin@example.org']);
2626
}
27-
}
27+
}

tests/_data/user.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
'username' => 'admin',
66
'authKey' => Yii::$app->getSecurity()->generateRandomString(),
77
'passwordHash' => Yii::$app->getSecurity()->generatePasswordHash(123123),
8-
'email' => 'admin@mail.com',
8+
'email' => 'admin@example.org',
99
'status' => 1,
1010
'createdAt' => time(),
1111
'updatedAt' => time(),
@@ -19,4 +19,4 @@
1919
'createdAt' => time(),
2020
'updatedAt' => time(),
2121
],
22-
];
22+
];

tests/functional/AdminLoginCest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ protected function formParams($login, $password)
1919

2020
public function checkLogin(FunctionalTester $I)
2121
{
22-
$I->submitForm($this->formId, $this->formParams('admin@mail.com', '123123'));
22+
$I->submitForm($this->formId, $this->formParams('admin@example.org', '123123'));
2323
$I->see('Logout (admin)', 'form button[type=submit]');
2424
$I->seeLink('Administration');
2525
}
2626

2727
public function checkAdminPanel(FunctionalTester $I)
2828
{
29-
$I->submitForm($this->formId, $this->formParams('admin@mail.com', '123123'));
29+
$I->submitForm($this->formId, $this->formParams('admin@example.org', '123123'));
3030
$I->see('Logout (admin)', 'form button[type=submit]');
3131
$I->seeLink('Administration');
3232
$I->click('Administration');
@@ -36,4 +36,4 @@ public function checkAdminPanel(FunctionalTester $I)
3636
$I->seeLink('Settings Storage');
3737
$I->seeLink('Cron Schedule Log');
3838
}
39-
}
39+
}

tests/functional/CreateUserCest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ protected function createUserFormParams($username, $email, $password)
2525
public function createUser(FunctionalTester $I)
2626
{
2727
$I->amOnRoute('site/login');
28-
$I->submitForm($this->loginFormId, $this->loginFormParams('admin@mail.com', '123123'));
28+
$I->submitForm($this->loginFormId, $this->loginFormParams('admin@example.org', '123123'));
2929
$I->amOnRoute('/admin/user/create');
3030
$I->see('Create User');
3131
$I->submitForm($this->createUserFormId, $this->createUserFormParams('created-user', '[email protected]', '123123'));
@@ -34,4 +34,4 @@ public function createUser(FunctionalTester $I)
3434
'email' => '[email protected]'
3535
]);
3636
}
37-
}
37+
}

tests/functional/LoginCest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ public function checkWrongPassword(FunctionalTester $I)
3737

3838
public function checkValidLogin(FunctionalTester $I)
3939
{
40-
$I->submitForm('#login-form', $this->formParams('admin@mail.com', '123123'));
40+
$I->submitForm('#login-form', $this->formParams('admin@example.org', '123123'));
4141
$I->see('Logout (admin)', 'form button[type=submit]');
4242
$I->dontSeeLink('Login');
4343
$I->dontSeeLink('Signup');
4444
}
45-
}
45+
}

tests/unit/models/LoginFormTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ public function testLoginWrongPassword()
5656
public function testLoginCorrect()
5757
{
5858
$this->model = new LoginForm([
59-
'email' => 'admin@mail.com',
59+
'email' => 'admin@example.org',
6060
'password' => '123123',
6161
]);
6262
expect_that($this->model->login());
6363
expect_not(Yii::$app->user->isGuest);
6464
expect($this->model->errors)->hasntKey('password');
6565
}
66-
}
66+
}

0 commit comments

Comments
 (0)