@@ -71,16 +71,16 @@ public function testSearchFilterWithPropertyPlaceholder(): void
71
71
$ response = $ this ->get ('/api/authors ' , ['accept ' => ['application/ld+json ' ]])->json ();
72
72
$ author = $ response ['hydra:member ' ][0 ];
73
73
74
- $ test = $ this ->get ('/api/authors?name= ' .explode (' ' , $ author ['name ' ])[0 ])->json ();
74
+ $ test = $ this ->get ('/api/authors?name= ' .explode (' ' , $ author ['name ' ])[0 ], [ ' accept ' => [ ' application/ld+json ' ]] )->json ();
75
75
$ this ->assertSame ($ test ['hydra:member ' ][0 ]['id ' ], $ author ['id ' ]);
76
76
77
- $ test = $ this ->get ('/api/authors?id= ' .$ author ['id ' ])->json ();
77
+ $ test = $ this ->get ('/api/authors?id= ' .$ author ['id ' ], [ ' accept ' => [ ' application/ld+json ' ]] )->json ();
78
78
$ this ->assertSame ($ test ['hydra:member ' ][0 ]['id ' ], $ author ['id ' ]);
79
79
}
80
80
81
81
public function testOrderFilterWithPropertyPlaceholder (): void
82
82
{
83
- $ res = $ this ->get ('/api/authors?order[id]=desc ' );
83
+ $ res = $ this ->get ('/api/authors?order[id]=desc ' , [ ' accept ' => [ ' application/ld+json ' ]] );
84
84
$ this ->assertSame ($ res ['hydra:member ' ][0 ]['id ' ], 10 );
85
85
}
86
86
@@ -90,7 +90,7 @@ public function testOrFilter(): void
90
90
$ book = $ response [0 ];
91
91
$ book2 = $ response [1 ];
92
92
93
- $ res = $ this ->get (\sprintf ('/api/books?name2[]=%s&name2[]=%s ' , $ book ['name ' ], $ book2 ['name ' ]))->json ();
93
+ $ res = $ this ->get (\sprintf ('/api/books?name2[]=%s&name2[]=%s ' , $ book ['name ' ], $ book2 ['name ' ]), [ ' accept ' => [ ' application/ld+json ' ]] )->json ();
94
94
$ this ->assertSame ($ res ['hydra:totalItems ' ], 2 );
95
95
}
96
96
}
0 commit comments