@@ -71,16 +71,16 @@ public function testSearchFilterWithPropertyPlaceholder(): void
7171 $ response = $ this ->get ('/api/authors ' , ['accept ' => ['application/ld+json ' ]])->json ();
7272 $ author = $ response ['hydra:member ' ][0 ];
7373
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 ();
7575 $ this ->assertSame ($ test ['hydra:member ' ][0 ]['id ' ], $ author ['id ' ]);
7676
77- $ test = $ this ->get ('/api/authors?id= ' .$ author ['id ' ])->json ();
77+ $ test = $ this ->get ('/api/authors?id= ' .$ author ['id ' ], [ ' accept ' => [ ' application/ld+json ' ]] )->json ();
7878 $ this ->assertSame ($ test ['hydra:member ' ][0 ]['id ' ], $ author ['id ' ]);
7979 }
8080
8181 public function testOrderFilterWithPropertyPlaceholder (): void
8282 {
83- $ res = $ this ->get ('/api/authors?order[id]=desc ' );
83+ $ res = $ this ->get ('/api/authors?order[id]=desc ' , [ ' accept ' => [ ' application/ld+json ' ]] );
8484 $ this ->assertSame ($ res ['hydra:member ' ][0 ]['id ' ], 10 );
8585 }
8686
@@ -90,7 +90,7 @@ public function testOrFilter(): void
9090 $ book = $ response [0 ];
9191 $ book2 = $ response [1 ];
9292
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 ();
9494 $ this ->assertSame ($ res ['hydra:totalItems ' ], 2 );
9595 }
9696}
0 commit comments