Skip to content

Commit 2cfe1d3

Browse files
author
Sine Jespersen
committed
2314: replace todo with screen id
1 parent 10d1308 commit 2cfe1d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/Api/ScreensTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ public function testCreateScreen(): void
113113
]);
114114
$this->assertResponseStatusCodeSame(201);
115115
$this->assertResponseHeaderSame('content-type', 'application/ld+json; charset=utf-8');
116+
116117
$this->assertJsonContains([
117118
'@context' => [
118119
'@vocab' => 'http://localhost/docs.jsonld#',
@@ -141,9 +142,9 @@ public function testCreateScreen(): void
141142
'location' => 'M2.42',
142143
'resolution' => '4K',
143144
'orientation' => 'vertical',
144-
'inScreenGroups' => '/v2/screens/todo/screen-groups',
145+
'inScreenGroups' => '/v2/screens/'.$response->toArray()['id'].'/screen-groups',
145146
'enableColorSchemeChange' => true,
146-
'regions' => ['/v2/screens/todo/regions/'.$regionUlidLeft.'/playlists', '/v2/screens/todo/regions/'.$regionUlidLeft.'/playlists'],
147+
'regions' => ['/v2/screens/'.$response->toArray()['id'].'/regions/'.$regionUlidLeft.'/playlists', '/v2/screens/'.$response->toArray()['id'].'/regions/'.$regionUlidRight.'/playlists'],
147148
]);
148149
$this->assertMatchesRegularExpression('@^/v\d/\w+/([A-Za-z0-9]{26})$@', $response->toArray()['@id']);
149150

0 commit comments

Comments
 (0)