[TESTS] Fix LocalUserTest, i forgor to boot the kernel

This commit is contained in:
Hugo Sales 2021-08-18 18:09:26 +01:00
parent e278efe61d
commit a7d5b5599c
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ class LocalUserTest extends GNUsocialTestCase
public function testChangePassword()
{
parent::bootKernel();
$user = LocalUser::findByNicknameOrEmail('form_personal_info_test_user', 'some@email');
static::assertTrue($user->changePassword(old_password_plain_text: '', new_password_plain_text: 'password', override: true));
static::assertTrue($user->changePassword(old_password_plain_text: 'password', new_password_plain_text: 'new_password', override: false));