diff --git a/core/modules/node/src/Tests/NodeCreationTest.php b/core/modules/node/src/Tests/NodeCreationTest.php index 7c4e142..d62737c 100644 --- a/core/modules/node/src/Tests/NodeCreationTest.php +++ b/core/modules/node/src/Tests/NodeCreationTest.php @@ -78,6 +78,13 @@ function testNodeCreation() { $this->drupalLogin($admin_user); $this->drupalGet('node/add/page'); $this->assertNoFieldById('edit-revision', NULL , 'The revision checkbox is not present.'); + + // Check that a user with user administer content types permission is not + // allowed to create content. + $content_types_admin = $this->drupalCreateUser(['administer content types']); + $this->drupalLogin($content_types_admin); + $this->drupalGet('node/add/page'); + $this->assertResponse(403); } /**