Issue #3468829 by catch, smustgrave: Speed up WorkspacesContentModerationStateTest

merge-requests/4664/merge
nod_ 2024-08-20 21:54:53 +02:00
parent fa5921b61e
commit f06e0f3f47
No known key found for this signature in database
GPG Key ID: 76624892606FA197
1 changed files with 20 additions and 43 deletions

View File

@ -40,10 +40,30 @@ class WorkspacesContentModerationStateTest extends ContentModerationStateTest {
*/ */
protected $revEntityTypeId = 'entity_test_revpub'; protected $revEntityTypeId = 'entity_test_revpub';
const SKIP_METHODS = [
// This test creates published default revisions in Live, which can not be
// deleted in a workspace. A test scenario for the case when Content
// Moderation and Workspaces are used together is covered in
// parent::testContentModerationStateRevisionDataRemoval().
'testContentModerationStateDataRemoval',
// This test does not assert anything that can be workspace-specific.
'testModerationWithFieldConfigOverride',
// This test does not assert anything that can be workspace-specific.
'testWorkflowDependencies',
// This test does not assert anything that can be workspace-specific.
'testWorkflowNonConfigBundleDependencies',
// This test does not assert anything that can be workspace-specific.
'testGetCurrentUserId',
];
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected function setUp(): void { protected function setUp(): void {
if (in_array($this->name(), static::SKIP_METHODS, TRUE)) {
$this->markTestSkipped('Irrelevant for this test');
}
parent::setUp(); parent::setUp();
$this->initializeWorkspacesModule(); $this->initializeWorkspacesModule();
@ -177,49 +197,6 @@ class WorkspacesContentModerationStateTest extends ContentModerationStateTest {
]; ];
} }
/**
* {@inheritdoc}
*/
public function testContentModerationStateDataRemoval($entity_type_id = NULL): void {
// This test creates published default revisions in Live, which can not be
// deleted in a workspace. A test scenario for the case when Content
// Moderation and Workspaces are used together is covered in
// parent::testContentModerationStateRevisionDataRemoval().
$this->markTestSkipped();
}
/**
* {@inheritdoc}
*/
public function testModerationWithFieldConfigOverride(): void {
// This test does not assert anything that can be workspace-specific.
$this->markTestSkipped();
}
/**
* {@inheritdoc}
*/
public function testWorkflowDependencies(): void {
// This test does not assert anything that can be workspace-specific.
$this->markTestSkipped();
}
/**
* {@inheritdoc}
*/
public function testWorkflowNonConfigBundleDependencies(): void {
// This test does not assert anything that can be workspace-specific.
$this->markTestSkipped();
}
/**
* {@inheritdoc}
*/
public function testGetCurrentUserId(): void {
// This test does not assert anything that can be workspace-specific.
$this->markTestSkipped();
}
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */