diff --git a/tests/Api/ScreensTest.php b/tests/Api/ScreensTest.php index 65d5271b..08bc0d75 100644 --- a/tests/Api/ScreensTest.php +++ b/tests/Api/ScreensTest.php @@ -192,7 +192,7 @@ public function testUpdateScreen(): void $regionUlid = $this->iriHelperUtils->getUlidFromIRI($regionIri); $client = $this->getAuthenticatedClient('ROLE_ADMIN'); - $iri = $this->findIriBy(Screen::class, ['title' => 'screen_abc_1']); + $iri = $this->findIriBy(Screen::class, ['title' => 'screen_abc_3']); $response = $client->request('PUT', $iri, [ 'json' => [ @@ -213,6 +213,23 @@ public function testUpdateScreen(): void ]); $playlistScreenRegionCountAfter = $playlistScreenRegionRepository->count([]); $this->assertEquals($playlistScreenRegionCountBefore, $playlistScreenRegionCountAfter, 'PlaylistScreenRegion count should not change'); + + $response = $client->request('PUT', $iri, [ + 'json' => [ + 'title' => 'Updated title 2', + ], + 'headers' => [ + 'Content-Type' => 'application/ld+json', + ], + ]); + + $this->assertResponseIsSuccessful(); + $this->assertJsonContains([ + '@id' => $iri, + 'title' => 'Updated title 2', + ]); + $playlistScreenRegionCountAfter = $playlistScreenRegionRepository->count([]); + $this->assertEquals($playlistScreenRegionCountBefore, $playlistScreenRegionCountAfter, 'PlaylistScreenRegion count should not change'); } public function testDeleteScreen(): void