Skip to content

Commit

Permalink
Changed test ignore order
Browse files Browse the repository at this point in the history
  • Loading branch information
tuj committed Nov 14, 2024
1 parent a80510e commit bfee6c5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/Api/ScreensTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,12 @@ public function testCreateScreen(): void
'orientation' => 'vertical',
'inScreenGroups' => '/v2/screens/'.$response->toArray()['id'].'/screen-groups',
'enableColorSchemeChange' => true,
'regions' => [
0 => '/v2/screens/'.$response->toArray()['id'].'/regions/'.$regionUlidRight.'/playlists',
1 => '/v2/screens/'.$response->toArray()['id'].'/regions/'.$regionUlidLeft.'/playlists',
],
]);

$regions = $response->toArray()['regions'];
$this->assertTrue(in_array('/v2/screens/'.$response->toArray()['id'].'/regions/'.$regionUlidLeft.'/playlists', $regions));
$this->assertTrue(in_array('/v2/screens/'.$response->toArray()['id'].'/regions/'.$regionUlidRight.'/playlists', $regions));

$this->assertMatchesRegularExpression('@^/v\d/\w+/([A-Za-z0-9]{26})$@', $response->toArray()['@id']);

$this->assertMatchesResourceItemJsonSchema(Screen::class);
Expand Down

0 comments on commit bfee6c5

Please sign in to comment.