ci: add phpunit defaultProfiles annotation + tag some tests with addition annotations to ease exclusion/inclusion mechanism

This commit is contained in:
odain
2022-08-24 11:02:08 +02:00
parent bdf11e32a7
commit 0b46ab9e48
6 changed files with 10 additions and 4 deletions

View File

@@ -40,6 +40,7 @@ use utils;
/**
* @group itopRequestMgmt
* @group userRights
* @group defaultProfiles
*
* @runTestsInSeparateProcesses
* @preserveGlobalState disabled
@@ -486,7 +487,7 @@ class UserRightsTest extends ItopDataTestCase
// logout
$_SESSION = [];
}
public function NonAdminCanListOwnProfilesProvider(): array
{
return [
@@ -495,7 +496,7 @@ class UserRightsTest extends ItopDataTestCase
];
}
/**
*@dataProvider NonAdminCannotListAdminProfilesProvider
*@dataProvider NonAdminCannotListAdminProfilesProvider
*/
public function testNonAdminCannotListAdminProfiles($bHideAdministrators, $iExpectedCount)
{
@@ -518,7 +519,7 @@ class UserRightsTest extends ItopDataTestCase
// logout
$_SESSION = [];
}
public function NonAdminCannotListAdminProfilesProvider(): array
{
return [