Skip to content

Commit 9ab0b8e

Browse files
committed
chore: Legger til SupressWarnings på PMD.ApexUnitTestClassShouldHaveRunAs i to test klasser da disse ikke trenger å testes med brukere
1 parent 47f85a1 commit 9ab0b8e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/frameworks/feature-toggle/test/classes/FeatureToggleBaseTest.cls

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
@IsTest
2-
@SuppressWarnings('PMD.ApexUnitTestClassShouldHaveRunAs')
1+
@IsTest(IsParallel=true)
2+
@SuppressWarnings(
3+
'PMD.ApexUnitTestClassShouldHaveRunAs'
4+
) // In these tests we don't need to run as a specific user
35
private with sharing class FeatureToggleBaseTest {
46
@IsTest
57
private static void noFeatures() {

src/platform-utility/custom-metadata-dao/test/classes/CustomMetadataDAOTest.cls

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
* }
3737
*/
3838
@IsTest(IsParallel=true)
39+
@SuppressWarnings(
40+
'PMD.ApexUnitTestClassShouldHaveRunAs'
41+
) // In these tests we don't need to run as a specific user
3942
public class CustomMetadataDAOTest {
4043
/**
4144
* @description Simple test for the getMetadata method.

0 commit comments

Comments
 (0)