File tree 1 file changed +5
-4
lines changed
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
152
152
'orientation ' => 'vertical ' ,
153
153
'inScreenGroups ' => '/v2/screens/ ' .$ response ->toArray ()['id ' ].'/screen-groups ' ,
154
154
'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
- ],
159
155
]);
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
+
160
161
$ this ->assertMatchesRegularExpression ('@^/v\d/\w+/([A-Za-z0-9]{26})$@ ' , $ response ->toArray ()['@id ' ]);
161
162
162
163
$ this ->assertMatchesResourceItemJsonSchema (Screen::class);
You can’t perform that action at this time.
0 commit comments