Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal_cms
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_cms
Commits
dd14b8ac
Commit
dd14b8ac
authored
2 months ago
by
Adam G-H
Browse files
Options
Downloads
Patches
Plain Diff
Add test coverage
parent
708a5ef7
No related branches found
No related tags found
1 merge request
!517
Add test coverage
Pipeline
#433501
failed
2 months ago
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
recipes/drupal_cms_content_type_base/recipe.yml
+4
-0
4 additions, 0 deletions
recipes/drupal_cms_content_type_base/recipe.yml
recipes/drupal_cms_content_type_base/tests/src/Functional/ComponentValidationTest.php
+7
-0
7 additions, 0 deletions
...ype_base/tests/src/Functional/ComponentValidationTest.php
with
11 additions
and
0 deletions
recipes/drupal_cms_content_type_base/recipe.yml
+
4
−
0
View file @
dd14b8ac
...
...
@@ -77,12 +77,16 @@ config:
scheduler.settings
:
simpleConfigUpdate
:
hide_seconds
:
true
trash.settings
:
simpleConfigUpdate
:
enabled_entity_types.node
:
[]
user.role.anonymous
:
# We assume all published content should be accessible to anonymous users.
grantPermission
:
'
access
content'
user.role.content_editor
:
grantPermissions
:
-
'
access
content
overview'
-
'
access
trash'
-
'
administer
menu'
-
'
use
text
format
content_format'
-
'
use
basic_editorial
transition
unpublish'
...
...
This diff is collapsed.
Click to expand it.
recipes/drupal_cms_content_type_base/tests/src/Functional/ComponentValidationTest.php
+
7
−
0
View file @
dd14b8ac
...
...
@@ -86,7 +86,14 @@ class ComponentValidationTest extends BrowserTestBase {
$unpublished
=
$this
->
drupalCreateNode
([
'type'
=>
'page'
]);
$this
->
assertFalse
(
$unpublished
->
isPublished
());
$this
->
drupalGet
(
"/admin/content/moderated"
);
print_r
(
$this
->
getSession
()
->
getPage
()
->
getContent
());
$assert_session
->
linkExists
(
$unpublished
->
getTitle
());
// The trash should be accessible to content editors.
$this
->
drupalGet
(
'/admin/content/trash'
);
$assert_session
->
statusCodeEquals
(
200
);
$this
->
drupalGet
(
'/admin/content/trash/node'
);
$assert_session
->
statusCodeEquals
(
200
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment