Skip to content

Commit

Permalink
Fix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Mar 1, 2022
1 parent 80845ad commit 8e0b5e3
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/Functional/Action/RequestActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions tests/Functional/Action/ResetActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions tests/Functional/Admin/UserAdminTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
9 changes: 9 additions & 0 deletions tests/Functional/Command/CreateUserCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
*/
Expand Down

0 comments on commit 8e0b5e3

Please sign in to comment.