Skip to content
Snippets Groups Projects
Commit dd14b8ac authored by Adam G-H's avatar Adam G-H
Browse files

Add test coverage

parent 708a5ef7
No related branches found
No related tags found
1 merge request!517Add test coverage
Pipeline #433501 failed
......@@ -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'
......
......@@ -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);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment