From 4b409e32693c80a6d5bb6fd46f73b5455427895c Mon Sep 17 00:00:00 2001 From: Stephen Cox Date: Tue, 18 Jun 2024 12:27:44 +0100 Subject: [PATCH 1/2] Patch Preview Link module for 'Automatically populating multiple preview link entities' (#713) * Patch Preview Link module for 'Automatically populating multiple preview link entities' #600 * Use patch from drupal.org rather than from Gitlab MR --- composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/composer.json b/composer.json index f4d96b2..2c383d0 100644 --- a/composer.json +++ b/composer.json @@ -62,6 +62,7 @@ "Users can't reference unpublished content even when they have access to it. See https://www.drupal.org/project/drupal/issues/2845144": "https://www.drupal.org/files/issues/2024-02-13/2845144-87.patch" }, "drupal/preview_link": { + "Automatically populating multiple preview link entities #3439968": "https://www.drupal.org/files/issues/2024-05-22/3439968-4.diff", "Add a 'copy to clipboard' feature for preview_link": "https://www.drupal.org/files/issues/2024-05-28/3449121-9.patch" }, "drupal/redirect": { From acc22feede0cc9946bac2a4abf662a9913c6ea1e Mon Sep 17 00:00:00 2001 From: Stephen Cox Date: Wed, 19 Jun 2024 14:21:05 +0100 Subject: [PATCH 2/2] Test content locking with the Claro theme #731 --- .../tests/src/Functional/ContentLockTest.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/modules/localgov_content_lock/tests/src/Functional/ContentLockTest.php b/modules/localgov_content_lock/tests/src/Functional/ContentLockTest.php index e924660..31364a6 100644 --- a/modules/localgov_content_lock/tests/src/Functional/ContentLockTest.php +++ b/modules/localgov_content_lock/tests/src/Functional/ContentLockTest.php @@ -26,6 +26,22 @@ class ContentLockTest extends BrowserTestBase { 'localgov_content_lock', ]; + /** + * Set up tests. + */ + protected function setUp(): void { + parent::setUp(); + + // Use Claro for testing as there are problems with the Gin theme. + // See https://github.com/localgovdrupal/localgov/issues/731 + $this->assertTrue(\Drupal::service('theme_installer')->install(['claro'])); + $this->container->get('config.factory') + ->getEditable('system.theme') + ->set('default', 'claro') + ->set('admin', 'claro') + ->save(); + } + /** * Test content lock configuration. */