@@ -192,7 +192,7 @@ public function testUpdateScreen(): void
192192 $ regionUlid = $ this ->iriHelperUtils ->getUlidFromIRI ($ regionIri );
193193
194194 $ client = $ this ->getAuthenticatedClient ('ROLE_ADMIN ' );
195- $ iri = $ this ->findIriBy (Screen::class, ['title ' => 'screen_abc_1 ' ]);
195+ $ iri = $ this ->findIriBy (Screen::class, ['title ' => 'screen_abc_3 ' ]);
196196
197197 $ response = $ client ->request ('PUT ' , $ iri , [
198198 'json ' => [
@@ -213,6 +213,23 @@ public function testUpdateScreen(): void
213213 ]);
214214 $ playlistScreenRegionCountAfter = $ playlistScreenRegionRepository ->count ([]);
215215 $ this ->assertEquals ($ playlistScreenRegionCountBefore , $ playlistScreenRegionCountAfter , 'PlaylistScreenRegion count should not change ' );
216+
217+ $ response = $ client ->request ('PUT ' , $ iri , [
218+ 'json ' => [
219+ 'title ' => 'Updated title 2 ' ,
220+ ],
221+ 'headers ' => [
222+ 'Content-Type ' => 'application/ld+json ' ,
223+ ],
224+ ]);
225+
226+ $ this ->assertResponseIsSuccessful ();
227+ $ this ->assertJsonContains ([
228+ '@id ' => $ iri ,
229+ 'title ' => 'Updated title 2 ' ,
230+ ]);
231+ $ playlistScreenRegionCountAfter = $ playlistScreenRegionRepository ->count ([]);
232+ $ this ->assertEquals ($ playlistScreenRegionCountBefore , $ playlistScreenRegionCountAfter , 'PlaylistScreenRegion count should not change ' );
216233 }
217234
218235 public function testDeleteScreen (): void
0 commit comments