Skip to content

Commit

Permalink
Changed permissions service test to test the actual implementation (l…
Browse files Browse the repository at this point in the history
…ess risky)
  • Loading branch information
rob-baillie-ortoo committed Mar 10, 2022
1 parent 3658177 commit 377619d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ public with sharing class PermissionsServiceImpl implements IPermissionsService
{
public Boolean hasAccessToCorePlatformCache()
{
return hasCustomPermission( 'customPermissionName' );
return hasCustomPermission( 'ProcessesCanAccessCache' );
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ private with sharing class PermissionsServiceImplTest
@isTest
private static void hasAccessToCorePlatformCache_doesNotThrowAnException() // NOPMD: test method format
{
Boolean hasPermission = PermissionsService.hasAccessToCorePlatformCache();
Boolean hasPermission = new PermissionsServiceImpl().hasAccessToCorePlatformCache();

System.assertNotEquals( null, hasPermission, 'hasAccessToCorePlatformCache, does not throw an exception, and returns a value' );
}
Expand Down

0 comments on commit 377619d

Please sign in to comment.