From a7d5b5599c419f10ef19d0e30d9bc6c540f59eb5 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Wed, 18 Aug 2021 18:09:26 +0100 Subject: [PATCH] [TESTS] Fix LocalUserTest, i forgor to boot the kernel --- tests/Entity/LocalUserTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Entity/LocalUserTest.php b/tests/Entity/LocalUserTest.php index 180c44515d..ae8028ea8c 100644 --- a/tests/Entity/LocalUserTest.php +++ b/tests/Entity/LocalUserTest.php @@ -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));