@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | |
19 | 19 | /** |
20 | - * @param \App\Containers\Email\UI\API\Requests\SetEmailRequest $request |
|
20 | + * @param SetUserEmailRequest $request |
|
21 | 21 | * @param \App\Containers\Email\Actions\SetUserEmailWithConfirmationAction $action |
22 | 22 | * |
23 | 23 | * @return \Dingo\Api\Http\Response |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * |
32 | 32 | * @param \App\Containers\User\Tasks\FindUserByVisitorIdTask $findUserByVisitorIdTask |
33 | 33 | * @param \App\Containers\User\Tasks\FindUserByIdTask $findUserByIdTask |
34 | - * @param \App\Containers\User\Tasks\GetAuthenticatedUserTask $getAuthenticatedUserTask |
|
34 | + * @param GetAuthenticatedUserTask $getAuthenticatedUserTask |
|
35 | 35 | */ |
36 | 36 | public function __construct( |
37 | 37 | FindUserByVisitorIdTask $findUserByVisitorIdTask, |
@@ -65,7 +65,7 @@ |
||
65 | 65 | */ |
66 | 66 | public function run($email, $userId = null) |
67 | 67 | { |
68 | - if(!$userId){ |
|
68 | + if (!$userId) { |
|
69 | 69 | $userId = $this->getAuthenticatedUserTask->run()->id; |
70 | 70 | } |
71 | 71 |
@@ -65,7 +65,7 @@ |
||
65 | 65 | */ |
66 | 66 | public function run($email, $userId = null) |
67 | 67 | { |
68 | - if(!$userId){ |
|
68 | + if (!$userId) { |
|
69 | 69 | $userId = $this->getAuthenticatedUserTask->run()->id; |
70 | 70 | } |
71 | 71 |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace App\Containers\Email\UI\API\Tests\Functional; |
4 | 4 | |
5 | -use App\Containers\Email\Mails\ConfirmEmail; |
|
6 | 5 | use App\Port\Tests\PHPUnit\Abstracts\TestCase; |
7 | 6 | |
8 | 7 | /** |
@@ -32,7 +32,6 @@ |
||
32 | 32 | * @param $agentId |
33 | 33 | * @param null $platform |
34 | 34 | * @param null $device |
35 | - * @param bool|false $login |
|
36 | 35 | * |
37 | 36 | * @return mixed |
38 | 37 | */ |
@@ -36,7 +36,7 @@ |
||
36 | 36 | * |
37 | 37 | * @param \App\Containers\User\Tasks\FindUserByVisitorIdTask $findUserByVisitorIdTask |
38 | 38 | * @param \App\Containers\User\Tasks\UpdateUserTask $updateUserTask |
39 | - * @param \App\Containers\User\Actions\ApiLoginThisUserObjectTask $apiLoginThisUserObjectTask |
|
39 | + * @param ApiLoginThisUserObjectTask $apiLoginThisUserObjectTask |
|
40 | 40 | */ |
41 | 41 | public function __construct( |
42 | 42 | FindUserByVisitorIdTask $findUserByVisitorIdTask, |
@@ -37,10 +37,10 @@ |
||
37 | 37 | 'name' => $data['name'], |
38 | 38 | ], $response); |
39 | 39 | |
40 | - // assert response contain the token |
|
40 | + // assert response contain the token |
|
41 | 41 | $this->assertResponseContainKeys(['id', 'token'], $response); |
42 | 42 | |
43 | - // assert the data is stored in the database |
|
43 | + // assert the data is stored in the database |
|
44 | 44 | $this->seeInDatabase('users', ['email' => $data['email']]); |
45 | 45 | } |
46 | 46 |
@@ -37,10 +37,10 @@ |
||
37 | 37 | 'name' => $data['name'], |
38 | 38 | ], $response); |
39 | 39 | |
40 | - // assert response contain the token |
|
40 | + // assert response contain the token |
|
41 | 41 | $this->assertResponseContainKeys(['id', 'token'], $response); |
42 | 42 | |
43 | - // assert the data is stored in the database |
|
43 | + // assert the data is stored in the database |
|
44 | 44 | $this->seeInDatabase('users', ['email' => $data['email']]); |
45 | 45 | } |
46 | 46 |