@@ -87,9 +87,7 @@ |
||
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | - * @param \App\Containers\User\UI\API\Requests\RegisterRequest $request |
|
| 91 | - * @param \App\Containers\User\Actions\CreateUserAction $createUserAction |
|
| 92 | - * @param \App\Containers\User\Actions\UpdateVisitorUserAction $updateVisitorUserAction |
|
| 90 | + * @param RegisterUserRequest $request |
|
| 93 | 91 | * |
| 94 | 92 | * @return \Dingo\Api\Http\Response |
| 95 | 93 | */ |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | use App\Containers\User\Actions\ListAndSearchUsersAction; |
| 9 | 9 | use App\Containers\User\Actions\RegisterUserAction; |
| 10 | 10 | use App\Containers\User\Actions\RegisterVisitorUserAction; |
| 11 | -use App\Containers\User\Actions\SwitchVisitorToUserAction; |
|
| 12 | 11 | use App\Containers\User\Actions\UpdateUserAction; |
| 13 | 12 | use App\Containers\User\UI\API\Requests\CreateAdminRequest; |
| 14 | 13 | use App\Containers\User\UI\API\Requests\DeleteUserRequest; |
@@ -33,10 +33,10 @@ |
||
| 33 | 33 | 'name' => $data['name'], |
| 34 | 34 | ], $response); |
| 35 | 35 | |
| 36 | - // assert response contain the token |
|
| 36 | + // assert response contain the token |
|
| 37 | 37 | $this->assertResponseContainKeys(['id', 'token'], $response); |
| 38 | 38 | |
| 39 | - // assert the data is stored in the database |
|
| 39 | + // assert the data is stored in the database |
|
| 40 | 40 | $this->seeInDatabase('users', ['email' => $data['email']]); |
| 41 | 41 | } |
| 42 | 42 | |
@@ -33,10 +33,10 @@ |
||
| 33 | 33 | 'name' => $data['name'], |
| 34 | 34 | ], $response); |
| 35 | 35 | |
| 36 | - // assert response contain the token |
|
| 36 | + // assert response contain the token |
|
| 37 | 37 | $this->assertResponseContainKeys(['id', 'token'], $response); |
| 38 | 38 | |
| 39 | - // assert the data is stored in the database |
|
| 39 | + // assert the data is stored in the database |
|
| 40 | 40 | $this->seeInDatabase('users', ['email' => $data['email']]); |
| 41 | 41 | } |
| 42 | 42 | |
@@ -36,10 +36,10 @@ |
||
| 36 | 36 | 'name' => $data['name'], |
| 37 | 37 | ], $response); |
| 38 | 38 | |
| 39 | - // assert response contain the token |
|
| 39 | + // assert response contain the token |
|
| 40 | 40 | $this->assertResponseContainKeys(['id', 'token'], $response); |
| 41 | 41 | |
| 42 | - // assert the data is stored in the database |
|
| 42 | + // assert the data is stored in the database |
|
| 43 | 43 | $this->seeInDatabase('users', ['email' => $data['email']]); |
| 44 | 44 | |
| 45 | 45 | $responseObject = $this->getResponseObject($response); |