Skip to content

Commit bfee6c5

Browse files
committed
Changed test ignore order
1 parent a80510e commit bfee6c5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/Api/ScreensTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,12 @@ public function testCreateScreen(): void
152152
'orientation' => 'vertical',
153153
'inScreenGroups' => '/v2/screens/'.$response->toArray()['id'].'/screen-groups',
154154
'enableColorSchemeChange' => true,
155-
'regions' => [
156-
0 => '/v2/screens/'.$response->toArray()['id'].'/regions/'.$regionUlidRight.'/playlists',
157-
1 => '/v2/screens/'.$response->toArray()['id'].'/regions/'.$regionUlidLeft.'/playlists',
158-
],
159155
]);
156+
157+
$regions = $response->toArray()['regions'];
158+
$this->assertTrue(in_array('/v2/screens/'.$response->toArray()['id'].'/regions/'.$regionUlidLeft.'/playlists', $regions));
159+
$this->assertTrue(in_array('/v2/screens/'.$response->toArray()['id'].'/regions/'.$regionUlidRight.'/playlists', $regions));
160+
160161
$this->assertMatchesRegularExpression('@^/v\d/\w+/([A-Za-z0-9]{26})$@', $response->toArray()['@id']);
161162

162163
$this->assertMatchesResourceItemJsonSchema(Screen::class);

0 commit comments

Comments
 (0)