Skip to content

Commit

Permalink
test: fix test (#28579)
Browse files Browse the repository at this point in the history
  • Loading branch information
gortiz-dotcms committed Oct 17, 2024
1 parent f6d63a0 commit 4299134
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2898,7 +2898,7 @@ private void addPermission(

APILocator.getPermissionAPI().save(
getPermission(role, contentType, permissionLevel.getType()),
contentType, APILocator.systemUser(), false);
contentType, adminUser, false);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
public class WorkflowAPITest extends IntegrationTestBase {

private static User user;
private static User adminUser;
private static Host defaultHost;
protected static ContentTypeAPIImpl contentTypeAPI;
protected static FieldAPI fieldAPI;
Expand Down Expand Up @@ -327,6 +328,7 @@ public static void prepare() throws Exception {

//Setting the test user
user = APILocator.getUserAPI().getSystemUser();
adminUser = APILocator.getUserAPI().loadByUserByEmail("[email protected]", user, false);
defaultHost = hostAPI.findDefaultHost(user, false);
contentTypeAPI = (ContentTypeAPIImpl) APILocator.getContentTypeAPI(user);
fieldAPI = APILocator.getContentTypeFieldAPI();
Expand Down Expand Up @@ -4962,7 +4964,7 @@ private void addPermission(

APILocator.getPermissionAPI().save(
getPermission(role, contentType, permissionLevel.getType()),
contentType, APILocator.systemUser(), false);
contentType, adminUser, false);
}


Expand Down

0 comments on commit 4299134

Please sign in to comment.