Skip to content
Snippets Groups Projects
Commit f7a14590 authored by Adam Bramley's avatar Adam Bramley
Browse files

Add more test coverage

parent cf1196b0
No related branches found
No related tags found
1 merge request!6043#3412420 - Remove "access block library" requirement fro block_content create.
......@@ -72,6 +72,13 @@ public function testBlockContentCreation() {
// Check that the block exists in the database.
$block = $this->getBlockByLabel($edit['info[0][value]']);
$this->assertNotEmpty($block, 'Content Block found in database.');
// Ensure a user with just the create permission can access the page.
$this->drupalLogin($this->drupalCreateUser([
'create basic block content',
]));
$this->drupalGet('block/add/basic');
$this->assertSession()->statusCodeEquals(200);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment