diff --git a/tests/Functional/Action/RequestActionTest.php b/tests/Functional/Action/RequestActionTest.php index a078f0b8f..81d4268c5 100644 --- a/tests/Functional/Action/RequestActionTest.php +++ b/tests/Functional/Action/RequestActionTest.php @@ -36,6 +36,10 @@ public function testItSubmitsResetPasswordRequestWithNonValidData(): void public function testItSubmitsResetPasswordRequestWithNonExistentUser(): void { $client = static::createClient(); + + // TODO: Remove this line when the issue gets solved: https://github.com/symfony/symfony/issues/45580 + $client->disableReboot(); + $client->request('GET', '/request'); static::assertResponseIsSuccessful(); @@ -57,6 +61,9 @@ public function itSubmitsResetPasswordRequest(): void { $client = static::createClient(); + // TODO: Remove this line when the issue gets solved: https://github.com/symfony/symfony/issues/45580 + $client->disableReboot(); + $this->prepareData(); $client->request('GET', '/request'); diff --git a/tests/Functional/Action/ResetActionTest.php b/tests/Functional/Action/ResetActionTest.php index fd1f8b509..d4eb429bc 100644 --- a/tests/Functional/Action/ResetActionTest.php +++ b/tests/Functional/Action/ResetActionTest.php @@ -57,6 +57,9 @@ public function testItResetsPassword(): void { $client = static::createClient(); + // TODO: Remove this line when the issue gets solved: https://github.com/symfony/symfony/issues/45580 + $client->disableReboot(); + $user = $this->prepareData(); $confirmationToken = $user->getConfirmationToken(); \assert(null !== $confirmationToken); diff --git a/tests/Functional/Admin/UserAdminTest.php b/tests/Functional/Admin/UserAdminTest.php index fc3bcd826..de974b081 100644 --- a/tests/Functional/Admin/UserAdminTest.php +++ b/tests/Functional/Admin/UserAdminTest.php @@ -91,6 +91,9 @@ public function testUpdatePassword(): void { $client = self::createClient(); + // TODO: Remove this line when the issue gets solved: https://github.com/symfony/symfony/issues/45580 + $client->disableReboot(); + $user = $this->prepareData(); static::assertSame('random_password', $user->getPassword()); diff --git a/tests/Functional/Command/CreateUserCommandTest.php b/tests/Functional/Command/CreateUserCommandTest.php index a08491b1f..899a58023 100644 --- a/tests/Functional/Command/CreateUserCommandTest.php +++ b/tests/Functional/Command/CreateUserCommandTest.php @@ -15,6 +15,7 @@ use Sonata\UserBundle\Model\UserInterface; use Sonata\UserBundle\Model\UserManagerInterface; +use Sonata\UserBundle\Tests\App\AppKernel; use Symfony\Bundle\FrameworkBundle\Console\Application; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Symfony\Component\Console\Tester\CommandTester; @@ -77,6 +78,14 @@ public function testCreatesAnSuperAdminUser(): void static::assertTrue($createdUser->isSuperAdmin()); } + /** + * @return class-string<\Symfony\Component\HttpKernel\KernelInterface> + */ + protected static function getKernelClass(): string + { + return AppKernel::class; + } + /** * @psalm-suppress UndefinedPropertyFetch */