-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f6d63a0
commit 4299134
Showing
2 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
@@ -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(); | ||
|
@@ -4962,7 +4964,7 @@ private void addPermission( | |
|
||
APILocator.getPermissionAPI().save( | ||
getPermission(role, contentType, permissionLevel.getType()), | ||
contentType, APILocator.systemUser(), false); | ||
contentType, adminUser, false); | ||
} | ||
|
||
|
||
|