File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments