1 | <?php |
||
2 | |||
3 | use Illuminate\Testing\TestResponse; |
||
4 | use VGirol\JsonApiAssert\Laravel\Assert; |
||
5 | |||
6 | 3 | TestResponse::macro( |
|
7 | 3 | 'assertJsonApiUpdated', |
|
8 | /** |
||
9 | * @param array $expected The expected updated resource object |
||
10 | * @param boolean $relationship If true, response content must be valid resource linkage |
||
11 | * @param boolean $strict If true, unsafe characters are not allowed when checking members name. |
||
12 | * |
||
13 | * @return void |
||
14 | * @throws \PHPUnit\Framework\AssertionFailedError |
||
15 | */ |
||
16 | 3 | function ($expected, $relationship = false, $strict = false) { |
|
17 | 9 | Assert::assertIsUpdatedResponse($this, $expected, $relationship, $strict); |
|
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
![]() |
|||
18 | 9 | } |
|
19 | ); |
||
20 |