Skip to content

Commit

Permalink
Merge pull request #332 from localgovdrupal/3.x
Browse files Browse the repository at this point in the history
3.1.2 release
  • Loading branch information
finnlewis authored Feb 27, 2024
2 parents a361c6e + e9aa731 commit 2a0c687
Show file tree
Hide file tree
Showing 19 changed files with 46 additions and 21 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
pull_request:
branches:
- '3.x'
workflow_dispatch:

env:
LOCALGOV_DRUPAL_PROJECT: localgovdrupal/localgov_directories
Expand All @@ -27,6 +28,7 @@ jobs:
- '~10.0'
php-version:
- '8.1'
- '8.2'

steps:

Expand Down Expand Up @@ -110,6 +112,7 @@ jobs:
- '~10.0'
php-version:
- '8.1'
- '8.2'

steps:

Expand Down Expand Up @@ -145,6 +148,7 @@ jobs:
- '~10.0'
php-version:
- '8.1'
- '8.2'

steps:

Expand Down Expand Up @@ -179,6 +183,7 @@ jobs:
- '~10.0'
php-version:
- '8.1'
- '8.2'

steps:

Expand All @@ -204,4 +209,4 @@ jobs:
mkdir -p ./html/web/sites/simpletest && chmod 777 ./html/web/sites/simpletest
sed -i "s#http://localgov.lndo.site#http://drupal#" ./html/phpunit.xml.dist
docker exec -t drupal bash -c 'chown docker:docker -R /var/www/html'
docker exec -u docker -t drupal bash -c "cd /var/www/html && ./bin/paratest --processes=4 ${{ env.LOCALGOV_DRUPAL_PROJECT_PATH }}"
docker exec -u docker -t drupal bash -c "cd /var/www/html && ./bin/paratest --processes=4 /var/www/html/${{ env.LOCALGOV_DRUPAL_PROJECT_PATH }}"
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"extra": {
"patches": {
"drupal/facets": {
"Don't render facet block if backend isn't available: https://www.drupal.org/project/facets/issues/3311856": "https://git.drupalcode.org/issue/facets-3311856/-/commit/765d5ef4228906c7f201e116763f3018a7867c96.patch"
"Don't render facet block if backend isn't available: https://www.drupal.org/project/facets/issues/3311856": "https://git.drupalcode.org/issue/facets-3311856/-/commit/765d5ef4228906c7f201e116763f3018a7867c96.patch",
"PHP 8.2 compatibility for the 2.0.x branch: https://www.drupal.org/project/facets/issues/3336646": "https://www.drupal.org/files/issues/2023-08-16/3336646-function-is-deprecated.patch"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ settings:
block_id: localgov_directories_facets_proximity_search
visibility:
node_type:
id: node_type
id: entity_bundle:node
bundles:
localgov_directory: localgov_directory
negate: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ settings:
block_id: localgov_directories_facets_proximity_search
visibility:
node_type:
id: node_type
id: entity_bundle:node
bundles:
localgov_directory: localgov_directory
negate: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace Drupal\localgov_directories_location;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ content:
label: inline
settings: { }
third_party_settings: { }
type: basic_string
type: email_mailto
region: content
localgov_directory_files:
weight: 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace Drupal\Tests\localgov_directories_venue\Kernel;

Expand Down
2 changes: 1 addition & 1 deletion src/ConfigurationHelper.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace Drupal\localgov_directories;

Expand Down
2 changes: 1 addition & 1 deletion src/Constants.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace Drupal\localgov_directories;

Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/Block/ChannelSearchBlock.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace Drupal\localgov_directories\Plugin\Block;

Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/facets/processor/WeightOrderProcessor.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace Drupal\localgov_directories\Plugin\facets\processor;

Expand Down
5 changes: 4 additions & 1 deletion tests/src/Functional/ChannelFacetsWidgetAdminTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ class ChannelFacetsWidgetAdminTest extends BrowserTestBase {

use FieldUiTestTrait;
use ContentTypeCreationTrait;
use EntityReferenceTestTrait;
use NodeCreationTrait;
// FIXME: Replace with EntityReferenceFieldCreationTrait when Drupal 10.1 is
// end of life.
// @phpstan-ignore-next-line.
use EntityReferenceTestTrait;

/**
* A user with minimum permissions for test.
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Functional/SearchBlockTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace Drupal\Tests\localgov_directories\Functional;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@
class EntityReferenceFacetsWidgetTest extends WebDriverTestBase {

use ContentTypeCreationTrait;
use EntityReferenceTestTrait;
use NodeCreationTrait;
// FIXME: Replace with EntityReferenceFieldCreationTrait when Drupal 10.1 is
// end of life.
// @phpstan-ignore-next-line.
use EntityReferenceTestTrait;


/**
* Array of directory nodes.
Expand Down
5 changes: 4 additions & 1 deletion tests/src/Kernel/EntityReferenceChannelsSelectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@
*/
class EntityReferenceChannelsSelectionTest extends KernelTestBase {

use EntityReferenceTestTrait;
use NodeCreationTrait;
// FIXME: Replace with EntityReferenceFieldCreationTrait when Drupal 10.1 is
// end of life.
// @phpstan-ignore-next-line.
use EntityReferenceTestTrait;

/**
* {@inheritdoc}
Expand Down
5 changes: 4 additions & 1 deletion tests/src/Kernel/EntityReferenceDirectoryEntryTypesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
*/
class EntityReferenceDirectoryEntryTypesTest extends KernelTestBase {

use EntityReferenceTestTrait;
use NodeCreationTrait;
// FIXME: Replace with EntityReferenceFieldCreationTrait when Drupal 10.1 is
// end of life.
// @phpstan-ignore-next-line.
use EntityReferenceTestTrait;

/**
* {@inheritdoc}
Expand Down
7 changes: 5 additions & 2 deletions tests/src/Kernel/FacetIndexFieldSetupTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace Drupal\Tests\localgov_directories\Kernel;

Expand All @@ -17,8 +17,11 @@
*/
class FacetIndexFieldSetupTest extends KernelTestBase {

use EntityReferenceTestTrait;
use NodeCreationTrait;
// FIXME: Replace with EntityReferenceFieldCreationTrait when Drupal 10.1 is
// end of life.
// @phpstan-ignore-next-line.
use EntityReferenceTestTrait;

/**
* Skip schema checks.
Expand Down
7 changes: 5 additions & 2 deletions tests/src/Kernel/IndexTitleSortTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace Drupal\Tests\localgov_directories\Kernel;

Expand All @@ -22,9 +22,12 @@
*/
class IndexTitleSortTest extends KernelTestBase {

use EntityReferenceTestTrait;
use NodeCreationTrait;
use ResultsTrait;
// FIXME: Replace with EntityReferenceFieldCreationTrait when Drupal 10.1 is
// end of life.
// @phpstan-ignore-next-line.
use EntityReferenceTestTrait;

/**
* {@inheritdoc}
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Unit/FacetPreprocessTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace Drupal\Tests\localgov_directories\Unit;

Expand Down

0 comments on commit 2a0c687

Please sign in to comment.