@@ -63,9 +63,7 @@ discard block |
||
63 | 63 | |
64 | 64 | /** |
65 | 65 | * @param $this ->endpointUrl |
66 | - * @param string $this ->endpointVerb |
|
67 | 66 | * @param array $data |
68 | - * @param bool $protected |
|
69 | 67 | * @param array $headers |
70 | 68 | * |
71 | 69 | * @return mixed |
@@ -91,7 +89,7 @@ discard block |
||
91 | 89 | * @param bool $skipEncoding |
92 | 90 | * @param string $replace |
93 | 91 | * |
94 | - * @return mixed |
|
92 | + * @return TestsRequestHelperTrait |
|
95 | 93 | */ |
96 | 94 | public function injectId($id, $skipEncoding = false, $replace = '{id}') |
97 | 95 | { |
@@ -108,7 +106,7 @@ discard block |
||
108 | 106 | * |
109 | 107 | * to be used as follow: $this->endpoint('verb@url')->makeCall($data); |
110 | 108 | * |
111 | - * @param $endpoint |
|
109 | + * @param string $endpoint |
|
112 | 110 | * |
113 | 111 | * @return $this |
114 | 112 | */ |
@@ -282,7 +280,7 @@ discard block |
||
282 | 280 | } |
283 | 281 | |
284 | 282 | /** |
285 | - * @param $separator |
|
283 | + * @param string $separator |
|
286 | 284 | */ |
287 | 285 | private function validateEndpointFormat($separator) |
288 | 286 | { |
@@ -61,7 +61,7 @@ |
||
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
64 | - * @param $keys |
|
64 | + * @param string[] $keys |
|
65 | 65 | * @param $httpResponse |
66 | 66 | */ |
67 | 67 | public function assertResponseContainKeys($keys, $httpResponse) |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace App\Ship\Parents\Tests\PhpUnit; |
4 | 4 | |
5 | -use App\Ship\Features\Tests\PhpUnit\TestingTrait; |
|
6 | 5 | use App\Ship\Features\Tests\PhpUnit\TestsAuthHelperTrait; |
7 | 6 | use App\Ship\Features\Tests\PhpUnit\TestsCustomHelperTrait; |
8 | 7 | use App\Ship\Features\Tests\PhpUnit\TestsMockHelperTrait; |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | use Illuminate\Support\Facades\Hash; |
4 | 4 | |
5 | -$factory->define(App\Containers\User\Models\User::class, function (Faker\Generator $faker) { |
|
5 | +$factory->define(App\Containers\User\Models\User::class, function(Faker\Generator $faker) { |
|
6 | 6 | |
7 | 7 | return [ |
8 | 8 | 'name' => $faker->name, |
@@ -32,7 +32,7 @@ |
||
32 | 32 | return; |
33 | 33 | } |
34 | 34 | |
35 | - $url = ($url) ? : $this->baseUrl; |
|
35 | + $url = ($url) ?: $this->baseUrl; |
|
36 | 36 | |
37 | 37 | $info = parse_url($url); |
38 | 38 |
@@ -38,10 +38,10 @@ |
||
38 | 38 | 'name' => $data['name'], |
39 | 39 | ], $response); |
40 | 40 | |
41 | - // assert response contain the token |
|
41 | + // assert response contain the token |
|
42 | 42 | $this->assertResponseContainKeys(['id', 'token'], $response); |
43 | 43 | |
44 | - // assert the data is stored in the database |
|
44 | + // assert the data is stored in the database |
|
45 | 45 | $this->seeInDatabase('users', ['email' => $data['email']]); |
46 | 46 | |
47 | 47 | $responseContent = $this->getResponseContent($response); |