File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,17 +26,11 @@ public function testWorkspaceRestrictionsForReadOnlyUser(): void
2626 $ this ->assertEquals ($ workspace ['id ' ], $ workspaceDetail ['id ' ]);
2727 $ this ->assertArrayNotHasKey ('password ' , $ workspaceDetail ['connection ' ]);
2828
29- try {
30- $ readOnlyWorkspaces ->createWorkspace ([], true );
31- $ this ->fail ('Workspace request should be restricted for readOnly user ' );
32- } catch (ClientException $ e ) {
33- $ this ->assertSame (403 , $ e ->getCode ());
34- $ this ->assertSame ('accessDenied ' , $ e ->getStringCode ());
35- $ this ->assertSame ($ expectedError , $ e ->getMessage ());
36- }
29+ // listing workspaces should be allowed for readOnly user
30+ $ readOnlyWorkspaces ->listWorkspaces ();
3731
3832 try {
39- $ readOnlyWorkspaces ->listWorkspaces ( );
33+ $ readOnlyWorkspaces ->createWorkspace ([], true );
4034 $ this ->fail ('Workspace request should be restricted for readOnly user ' );
4135 } catch (ClientException $ e ) {
4236 $ this ->assertSame (403 , $ e ->getCode ());
You can’t perform that action at this time.
0 commit comments