Skip to content
Snippets Groups Projects
Commit 00732072 authored by Yurii Panchuk's avatar Yurii Panchuk
Browse files

Issue #3431588 by Project Update Bot, Panchuk: Automated Drupal 11...

Issue #3431588 by Project Update Bot, Panchuk: Automated Drupal 11 compatibility fixes for layout_builder_lock
parent 9468fda9
No related branches found
No related tags found
1 merge request!22Automated Drupal 11 compatibility fixes for layout_builder_lock
Pipeline #190980 passed
name: 'Layout Builder Lock'
description: 'Allows to lock sections so a user can not add, update or remove blocks or add new sections before and after.'
type: module
core_version_requirement: ^9.2 || ^10
core_version_requirement: ^9.2 || ^10 || ^11
package: 'Layout Builder'
dependencies:
- drupal:layout_builder
......@@ -186,7 +186,7 @@ class LayoutBuilderLockTest extends BrowserTestBase {
*
* @throws \Behat\Mink\Exception\ExpectationException
*/
public function testLock() {
public function testLock(): void {
$assert_session = $this->assertSession();
$page = $this->getSession()->getPage();
......@@ -346,7 +346,7 @@ class LayoutBuilderLockTest extends BrowserTestBase {
/**
* Tests removing a section with the permission to do so.
*/
public function testRemovingSectionWithAppropriatePermission() {
public function testRemovingSectionWithAppropriatePermission(): void {
$assert_session = $this->assertSession();
$page = $this->getSession()->getPage();
$node = $this->drupalCreateNode([
......@@ -380,7 +380,7 @@ class LayoutBuilderLockTest extends BrowserTestBase {
*
* @throws \Behat\Mink\Exception\ExpectationException
*/
public function testMultipleSections() {
public function testMultipleSections(): void {
$assert_session = $this->assertSession();
$page = $this->getSession()->getPage();
......@@ -500,7 +500,7 @@ class LayoutBuilderLockTest extends BrowserTestBase {
*
* @throws \Behat\Mink\Exception\ExpectationException
*/
public function testRegionLock() {
public function testRegionLock(): void {
$assertSession = $this->assertSession();
$page = $this->getSession()->getPage();
......@@ -607,7 +607,7 @@ class LayoutBuilderLockTest extends BrowserTestBase {
* @throws \Behat\Mink\Exception\ElementNotFoundException
* @throws \Behat\Mink\Exception\ExpectationException
*/
protected function checkLinksAndAccess(WebAssert $assert_session, NodeInterface $node, bool $locked = FALSE, int $code = 200, bool $allow_section_after = FALSE) {
protected function checkLinksAndAccess(WebAssert $assert_session, NodeInterface $node, bool $locked = FALSE, int $code = 200, bool $allow_section_after = FALSE): void {
if ($code == 200) {
$assert_session->linkExists('Add block');
$assert_session->linkExists('Add section');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment