mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Зафиксирована стабильная версия Codeception 2.1.10
Обновлены моки для будущей совместимости с Codeception 2.2
This commit is contained in:
@@ -100,12 +100,15 @@ class ChangePasswordFormTest extends DbTestCase {
|
||||
|
||||
public function testChangePasswordWithLogout() {
|
||||
/** @var Component|\PHPUnit_Framework_MockObject_MockObject $component */
|
||||
$component = $this->getMock(Component::class, ['getActiveSession'], [[
|
||||
'identityClass' => AccountIdentity::class,
|
||||
'enableSession' => false,
|
||||
'loginUrl' => null,
|
||||
'secret' => 'secret',
|
||||
]]);
|
||||
$component = $this->getMockBuilder(Component::class)
|
||||
->setMethods(['getActiveSession'])
|
||||
->setConstructorArgs([[
|
||||
'identityClass' => AccountIdentity::class,
|
||||
'enableSession' => false,
|
||||
'loginUrl' => null,
|
||||
'secret' => 'secret',
|
||||
]])
|
||||
->getMock();
|
||||
|
||||
/** @var AccountSession $session */
|
||||
$session = AccountSession::findOne($this->accountSessions['admin2']['id']);
|
||||
|
@@ -37,7 +37,7 @@ class ChangeUsernameFormTest extends DbTestCase {
|
||||
}
|
||||
|
||||
public function testChangeWithoutChange() {
|
||||
$this->scenario->incomplete('This test is written invalid');
|
||||
$this->markTestSkipped('This test is written invalid');
|
||||
return;
|
||||
|
||||
// TODO: этот тест написан неправильно - запись всё равно добавляется в базу данных, но тест не замечает
|
||||
|
Reference in New Issue
Block a user