mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 17:48:43 +02:00
ci: add phpunit defaultProfiles annotation + tag some tests with addition annotations to ease exclusion/inclusion mechanism
This commit is contained in:
@@ -26,6 +26,7 @@ use Combodo\iTop\Test\UnitTest\ItopDataTestCase;
|
||||
*
|
||||
* @covers utils
|
||||
* @group sampleDataNeeded
|
||||
* @group defaultProfiles
|
||||
*/
|
||||
class privUITransactionFileTest extends ItopDataTestCase
|
||||
{
|
||||
|
||||
@@ -18,6 +18,7 @@ use MetaModel;
|
||||
* @backupGlobals disabled
|
||||
*
|
||||
* @group itopRequestMgmt
|
||||
* @group specificOrgInSampleData
|
||||
* Class TransactionsTest
|
||||
*
|
||||
* @package Combodo\iTop\Test\UnitTest\Core
|
||||
@@ -248,4 +249,4 @@ class TransactionsTest extends ItopTestCase
|
||||
"History 13" => ['iFailAt' => 15, 'bIsModified' => true],
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ class OQLParserTest extends ItopDataTestCase
|
||||
* @group iTopChangeMgt
|
||||
* @group itopConfigMgmt
|
||||
* @group itopRequestMgmt
|
||||
* @group specificOrgInSampleData
|
||||
* @dataProvider NestedQueryProvider
|
||||
*
|
||||
* @param $sQuery
|
||||
|
||||
@@ -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 [
|
||||
|
||||
@@ -30,6 +30,7 @@ use utils;
|
||||
*
|
||||
* @package Combodo\iTop\Test\UnitTest\Synchro
|
||||
* @group dataSynchro
|
||||
* @group defaultProfiles
|
||||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
* @preserveGlobalState disabled
|
||||
|
||||
@@ -9,6 +9,7 @@ use Exception;
|
||||
/**
|
||||
* @group itopRequestMgmt
|
||||
* @group restApi
|
||||
* @group defaultProfiles
|
||||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
* @preserveGlobalState disabled
|
||||
|
||||
Reference in New Issue
Block a user