Tests/Command/CreateUserHandlerTest.php 1 location
|
@@ 23-29 (lines=7) @@
|
| 20 |
|
/** @var BaseUserRepositoryCollection */ |
| 21 |
|
private $userRepositoryCollection; |
| 22 |
|
|
| 23 |
|
public function setUp(): void |
| 24 |
|
{ |
| 25 |
|
$this->userRepository = new InMemoryBaseUserRepository( |
| 26 |
|
new EncoderFactory([BaseUser::class => new PlaintextPasswordEncoder()]) |
| 27 |
|
); |
| 28 |
|
$this->userRepositoryCollection = new BaseUserRepositoryCollection([$this->userRepository]); |
| 29 |
|
} |
| 30 |
|
|
| 31 |
|
/** |
| 32 |
|
* Test if CreateUserHandler gets handled. |
Tests/Command/DeleteUserHandlerTest.php 1 location
|
@@ 23-29 (lines=7) @@
|
| 20 |
|
/** @var BaseUserRepositoryCollection */ |
| 21 |
|
private $userRepositoryCollection; |
| 22 |
|
|
| 23 |
|
public function setUp(): void |
| 24 |
|
{ |
| 25 |
|
$this->userRepository = new InMemoryBaseUserRepository( |
| 26 |
|
new EncoderFactory([BaseUser::class => new PlaintextPasswordEncoder()]) |
| 27 |
|
); |
| 28 |
|
$this->userRepositoryCollection = new BaseUserRepositoryCollection([$this->userRepository]); |
| 29 |
|
} |
| 30 |
|
|
| 31 |
|
/** |
| 32 |
|
* Test if DeleteUserHandler gets handled. |
Tests/Command/PasswordResetHandlerTest.php 1 location
|
@@ 24-30 (lines=7) @@
|
| 21 |
|
/** @var BaseUserRepositoryCollection */ |
| 22 |
|
private $userRepositoryCollection; |
| 23 |
|
|
| 24 |
|
public function setUp(): void |
| 25 |
|
{ |
| 26 |
|
$this->userRepository = new InMemoryBaseUserRepository( |
| 27 |
|
new EncoderFactory([BaseUser::class => new PlaintextPasswordEncoder()]) |
| 28 |
|
); |
| 29 |
|
$this->userRepositoryCollection = new BaseUserRepositoryCollection([$this->userRepository]); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
/** |
| 33 |
|
* Test if PAsswordResetHandler gets handled. |
Tests/Command/PasswordResetRequestHandlerTest.php 1 location
|
@@ 24-30 (lines=7) @@
|
| 21 |
|
/** @var BaseUserRepositoryCollection */ |
| 22 |
|
private $userRepositoryCollection; |
| 23 |
|
|
| 24 |
|
public function setUp(): void |
| 25 |
|
{ |
| 26 |
|
$this->userRepository = new InMemoryBaseUserRepository( |
| 27 |
|
new EncoderFactory([BaseUser::class => new PlaintextPasswordEncoder()]) |
| 28 |
|
); |
| 29 |
|
$this->userRepositoryCollection = new BaseUserRepositoryCollection([$this->userRepository]); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
/** |
| 33 |
|
* Test if CreateUserHandler gets handled. |
Tests/Command/UpdateUserHandlerTest.php 1 location
|
@@ 23-29 (lines=7) @@
|
| 20 |
|
/** @var BaseUserRepositoryCollection */ |
| 21 |
|
private $userRepositoryCollection; |
| 22 |
|
|
| 23 |
|
public function setUp(): void |
| 24 |
|
{ |
| 25 |
|
$this->userRepository = new InMemoryBaseUserRepository( |
| 26 |
|
new EncoderFactory([BaseUser::class => new PlaintextPasswordEncoder()]) |
| 27 |
|
); |
| 28 |
|
$this->userRepositoryCollection = new BaseUserRepositoryCollection([$this->userRepository]); |
| 29 |
|
} |
| 30 |
|
|
| 31 |
|
/** |
| 32 |
|
* Test if UpdateUserHandler gets handled. |