File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -362,17 +362,22 @@ public function testAssertWhereMatchesValueUsingArrayable()
362
362
public function testAssertWhereMatchesValueUsingArrayableWhenSortedDifferently ()
363
363
{
364
364
$ assert = AssertableJson::fromArray ([
365
- 'bar ' => [
366
- 'baz ' => 'foo ' ,
367
- 'example ' => 'value ' ,
365
+ 'data ' => [
366
+ 'status ' => 200 ,
367
+ 'user ' => [
368
+ 'id ' => 1 ,
369
+ 'name ' => 'Taylor ' ,
370
+ ],
368
371
],
369
372
]);
370
373
371
- $ assert ->where ('bar ' , function ($ value ) {
372
- $ this ->assertInstanceOf (Collection::class, $ value );
373
-
374
- return $ value ->count () === 2 ;
375
- });
374
+ $ assert ->where ('data ' , [
375
+ 'user ' => [
376
+ 'name ' => 'Taylor ' ,
377
+ 'id ' => 1 ,
378
+ ],
379
+ 'status ' => 200 ,
380
+ ]);
376
381
}
377
382
378
383
public function testAssertWhereFailsWhenDoesNotMatchValueUsingArrayable ()
You can’t perform that action at this time.
0 commit comments