Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Merge requests
!9290
10.4.x
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
10.4.x
issue/drupal-3468829:3468829-10.4.x
into
10.4.x
Overview
0
Commits
1
Pipelines
1
Changes
1
Closed
spokje
requested to merge
issue/drupal-3468829:3468829-10.4.x
into
10.4.x
9 months ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Closes
#3468829
0
0
Merge request reports
Compare
10.4.x
10.4.x (base)
and
latest version
latest version
42cf30f0
1 commit,
9 months ago
1 file
+
35
−
13
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
core/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php
+
35
−
13
Options
@@ -40,10 +40,30 @@ class WorkspacesContentModerationStateTest extends ContentModerationStateTest {
*/
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}
*/
protected
function
setUp
():
void
{
if
(
in_array
(
$this
->
name
(),
static
::
SKIP_METHODS
,
TRUE
))
{
$this
->
markTestSkipped
(
'Irrelevant for this test'
);
}
parent
::
setUp
();
$this
->
initializeWorkspacesModule
();
@@ -181,43 +201,45 @@ public static function basicModerationTestCases() {
* {@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
();
// Deliberately empty body. This test will be skipped in the setUp() of this
// class. However, for it to be picked up there, in PHPUnit 9, it still
// needs to be defined in this class.
}
/**
* {@inheritdoc}
*/
public
function
testModerationWithFieldConfigOverride
():
void
{
// This test does not assert anything that can be workspace-specific.
$this
->
markTestSkipped
();
// Deliberately empty body. This test will be skipped in the setUp() of this
// class. However, for it to be picked up there, in PHPUnit 9, it still
// needs to be defined in this class.
}
/**
* {@inheritdoc}
*/
public
function
testWorkflowDependencies
():
void
{
// This test does not assert anything that can be workspace-specific.
$this
->
markTestSkipped
();
// Deliberately empty body. This test will be skipped in the setUp() of this
// class. However, for it to be picked up there, in PHPUnit 9, it still
// needs to be defined in this class.
}
/**
* {@inheritdoc}
*/
public
function
testWorkflowNonConfigBundleDependencies
():
void
{
// This test does not assert anything that can be workspace-specific.
$this
->
markTestSkipped
();
// Deliberately empty body. This test will be skipped in the setUp() of this
// class. However, for it to be picked up there, in PHPUnit 9, it still
// needs to be defined in this class.
}
/**
* {@inheritdoc}
*/
public
function
testGetCurrentUserId
():
void
{
// This test does not assert anything that can be workspace-specific.
$this
->
markTestSkipped
();
// Deliberately empty body. This test will be skipped in the setUp() of this
// class. However, for it to be picked up there, in PHPUnit 9, it still
// needs to be defined in this class.
}
/**
Loading