Skip to content

Commit

Permalink
Rector
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet authored and github-actions[bot] committed Nov 13, 2024
1 parent b1d941c commit e990b8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/Functional/Action/ResetActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function testItSubmitsResetPasswordFormWithNonValidData(): void
$confirmationToken = $user->getConfirmationToken();
\assert(null !== $confirmationToken);

static::assertSame($user->getPassword(), 'random_password');
static::assertSame('random_password', $user->getPassword());

$client->request('GET', \sprintf('/reset/%s', $confirmationToken));

Expand All @@ -60,7 +60,7 @@ public function testItResetsPassword(): void
$confirmationToken = $user->getConfirmationToken();
\assert(null !== $confirmationToken);

static::assertSame($user->getPassword(), 'random_password');
static::assertSame('random_password', $user->getPassword());

$client->request('GET', \sprintf('/reset/%s', $confirmationToken));

Expand All @@ -76,7 +76,7 @@ public function testItResetsPassword(): void

static::assertNull($user->getPasswordRequestedAt());
static::assertNull($user->getConfirmationToken());
static::assertSame($user->getPassword(), 'new_password');
static::assertSame('new_password', $user->getPassword());
}

private function prepareData(): UserInterface
Expand Down
4 changes: 2 additions & 2 deletions tests/Functional/Command/ChangePasswordCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function testChangesUserPassword(): void
{
$user = $this->prepareData('sonata-user-test', 'old_password');

static::assertSame($user->getPassword(), 'old_password');
static::assertSame('old_password', $user->getPassword());

$this->commandTester->execute([
'username' => 'sonata-user-test',
Expand All @@ -56,7 +56,7 @@ public function testChangesUserPassword(): void

$user = $this->refreshUser($user);

static::assertSame($user->getPassword(), 'new_password');
static::assertSame('new_password', $user->getPassword());
static::assertStringContainsString('Changed password for user "sonata-user-test".', $this->commandTester->getDisplay());
}

Expand Down

0 comments on commit e990b8d

Please # to comment.