mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
[CS][DX] Refactor
This commit is contained in:
parent
5dd143f736
commit
cb825fac1f
3 changed files with 2 additions and 3 deletions
|
|
@ -96,7 +96,7 @@ final class ChangeAdminPasswordContext implements Context
|
|||
|
||||
Assert::same(
|
||||
$adminUser->getPassword(),
|
||||
$this->userPasswordHasher->hashPassword($adminUser, $adminUser->getPlainPassword())
|
||||
$this->userPasswordHasher->hashPassword($adminUser, $adminUser->getPlainPassword()),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use Sylius\Component\User\Security\Generator\GeneratorInterface;
|
|||
use Symfony\Bundle\SecurityBundle\Security;
|
||||
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
||||
use Symfony\Component\EventDispatcher\GenericEvent;
|
||||
use Symfony\Component\Security\Core\User\UserInterface;
|
||||
use Webmozart\Assert\Assert;
|
||||
|
||||
final readonly class UserRegistrationListener
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ final class PasswordUpdaterSpec extends ObjectBehavior
|
|||
|
||||
function it_updates_user_profile_with_hashed_password(
|
||||
UserPasswordHasherInterface $userPasswordHasher,
|
||||
UserInterface $user
|
||||
UserInterface $user,
|
||||
): void {
|
||||
$user->getPlainPassword()->willReturn('topSecretPlainPassword');
|
||||
$userPasswordHasher->hashPassword($user, 'topSecretPlainPassword')->willReturn('topSecretHashedPassword');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue