Skip to content

Commit

Permalink
Merge pull request #227 from localgovdrupal/2.x
Browse files Browse the repository at this point in the history
release 2.13.2
  • Loading branch information
finnlewis authored Jun 11, 2024
2 parents fc933f9 + d25de0e commit 06a39dd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
4 changes: 0 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"drupal/media_library_edit": "^3.0",
"drupal/metatag": "^1.14",
"drupal/pathauto": "^1.8",
"drupal/redirect": "^1.6",
"drupal/role_delegation": "^1.1",
"drupal/token": "^1.7"
},
Expand All @@ -21,9 +20,6 @@
},
"extra": {
"enable-patching": true,
"patches": {
"drupal/redirect": {
"Validation issue on adding url redirect: https://www.drupal.org/project/redirect/issues/3057250": "https://www.drupal.org/files/issues/2022-09-01/3057250-53.patch"}},
"composer-exit-on-patch-failure": true,
"patchLevel": {
"drupal/core": "-p2"
Expand Down
2 changes: 1 addition & 1 deletion modules/localgov_media/localgov_media.module
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use Drupal\user\Entity\Role;
* Implements hook_modules_installed().
*/
function localgov_media_modules_installed($modules, $is_syncing) {
if (!$is_syncing && in_array('localgov_media', $modules)) {
if (!$is_syncing && in_array('localgov_media', $modules, TRUE)) {

// Install all optional config now rather than deferring it to later.
$config_path = \Drupal::service('extension.list.module')->getPath('localgov_media') . '/config/optional';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ModuleRolesTest extends KernelTestBase {
* {@inheritdoc}
*/
public function setUp(): void {
parent::setup();
parent::setUp();

$this->installConfig([
'user',
Expand Down
10 changes: 5 additions & 5 deletions tests/src/Kernel/FieldRenameHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class FieldRenameHelperTest extends KernelTestBase {
* {@inheritdoc}
*/
public function setUp(): void {
parent::setup();
parent::setUp();

$this->installEntitySchema('user');
$this->installEntitySchema('node');
Expand Down Expand Up @@ -175,14 +175,14 @@ public function testRenameField() {
// Assert the entity form displays preserve the field groups.
$form_display = EntityFormDisplay::load('node.test_type.default');
$form_groups = $form_display->getThirdPartySettings('field_group');
$this->assertEquals(TRUE, in_array('renamed_test_field', $form_groups['test_group']['children']));
$this->assertEquals(TRUE, in_array('another_renamed_test_field', $form_groups['another_test_group']['children']));
$this->assertEquals(TRUE, in_array('renamed_test_field', $form_groups['test_group']['children'], TRUE));
$this->assertEquals(TRUE, in_array('another_renamed_test_field', $form_groups['another_test_group']['children'], TRUE));

// Assert the entity view displays preserve the field groups.
$view_display = EntityViewDisplay::load('node.test_type.default');
$view_groups = $view_display->getThirdPartySettings('field_group');
$this->assertEquals(TRUE, in_array('renamed_test_field', $view_groups['test_group']['children']));
$this->assertEquals(TRUE, in_array('another_renamed_test_field', $view_groups['another_test_group']['children']));
$this->assertEquals(TRUE, in_array('renamed_test_field', $view_groups['test_group']['children'], TRUE));
$this->assertEquals(TRUE, in_array('another_renamed_test_field', $view_groups['another_test_group']['children'], TRUE));

// Assert the field config is preserved.
$form_component = $form_display->getComponent('renamed_test_field');
Expand Down

0 comments on commit 06a39dd

Please sign in to comment.