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