Skip to content

Commit

Permalink
Merge pull request #36 from openeuropa/EWPP-4238
Browse files Browse the repository at this point in the history
EWPP-4238: Support D10.2 and drop D9.
  • Loading branch information
nagyad authored Apr 3, 2024
2 parents 23eaf49 + b89c210 commit 363e9ce
Show file tree
Hide file tree
Showing 15 changed files with 30 additions and 29 deletions.
15 changes: 8 additions & 7 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
- DOCUMENT_ROOT=/test/oe_corporate_site_info
- COMPOSERVER=--2
mysql:
image: registry.fpfis.eu/fpfis/sql:percona-5.7
image: git.fpfis.tech.ec.europa.eu/fpfis/dependency_proxy/containers/percona:5.7
command: --innodb-log-file-size=1G --max_allowed_packet=1G --innodb-buffer-pool-size=512M --wait_timeout=3000 --net_write_timeout=3000 --log_error_verbosity=3
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
Expand All @@ -31,12 +31,11 @@ services:
- SPARQL_UPDATE=true
- DBA_PASSWORD=dba
selenium:
image: registry.fpfis.eu/fpfis/selenium:standalone-chrome-3.141.59-oxygen
image: git.fpfis.tech.ec.europa.eu/fpfis/dependency_proxy/containers/selenium/standalone-chrome:3.141.59-oxygen
pull: true
shm_size: 2g
environment:
- DISPLAY=:99
- SE_OPTS=-debug
- SCREEN_WIDTH=1280
- SCREEN_HEIGHT=800
- NODE_MAX_INSTANCES=5
Expand Down Expand Up @@ -84,9 +83,11 @@ pipeline:

matrix:
include:
- CORE_VERSION: 9.4.0
PHP_VERSION: 8.0
- CORE_VERSION: 9.4.0
- CORE_VERSION: 10.1.0
PHP_VERSION: 8.1
- CORE_VERSION: 10.0
- CORE_VERSION: 10.1.0
PHP_VERSION: 8.2
- CORE_VERSION: 10.2.0
PHP_VERSION: 8.1
- CORE_VERSION: 10.2.0
PHP_VERSION: 8.2
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ These are directly made available in the dependent RDF triple store.

This depends on the following software:

* [PHP >=8.0](http://php.net/)
* [PHP >=8.1](http://php.net/)
* Virtuoso (or equivalent) triple store which contains the RDF representations of the following Publications Office (OP)
vocabularies: Corporate Bodies, Target Audiences, Organisation Types, Resource Types, Eurovoc

Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=8.0",
"drupal/core": "^9.4 || ^10",
"php": ">=8.1",
"drupal/core": "^10",
"drupal/multivalue_form_element": "^1.0@beta",
"openeuropa/rdf_skos": "^1.0.0-alpha9"
},
"require-dev": {
"composer/installers": "^1.5",
"drupal/core-composer-scaffold": "^9.4 || ^10",
"drupal/core-composer-scaffold": "^10",
"drupal/drupal-extension": "^5.0",
"drush/drush": "^11.1",
"drush/drush": "^12.4",
"openeuropa/code-review": "^2.0.0-alpha6",
"openeuropa/task-runner-drupal-project-symlink": "^1.0-beta6",
"phpspec/prophecy-phpunit": "^2",
"symfony/phpunit-bridge": "^6.0"
"symfony/phpunit-bridge": "^6.2"
},
"scripts": {
"post-install-cmd": "./vendor/bin/run drupal:site-setup",
Expand Down
2 changes: 1 addition & 1 deletion oe_corporate_site_info.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: "Set corporate information about the site, such as: site owner, con
package: OpenEuropa

type: module
core_version_requirement: ^9.4 || ^10
core_version_requirement: ^10

dependencies:
- rdf_skos:rdf_skos
Expand Down
2 changes: 1 addition & 1 deletion oe_corporate_site_info.install
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* OpenEuropa Corporate Site Information installation file.
*/

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

use Drupal\Core\Entity\EntityDefinitionUpdateManager;
use Drupal\Core\Field\BaseFieldDefinition;
Expand Down
2 changes: 1 addition & 1 deletion oe_corporate_site_info.module
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* OpenEuropa Corporate Site Information module.
*/

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

use Drupal\Core\Entity\Element\EntityAutocomplete;
use Drupal\Core\Form\FormStateInterface;
Expand Down
2 changes: 1 addition & 1 deletion oe_corporate_site_info.post_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* OpenEuropa Corporate Site Information post updates.
*/

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

/**
* Install Multi-value form element contrib module.
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<env name="SIMPLETEST_BASE_URL" value="${drupal.base_url}"/>
<env name="SIMPLETEST_DB" value="mysql://${drupal.database.user}:${drupal.database.password}@${drupal.database.host}:${drupal.database.port}/${drupal.database.name}"/>
<env name="SIMPLETEST_SPARQL_DB" value="sparql://${drupal.sparql.host}:${drupal.sparql.port}/?module=sparql_entity_storage"/>
<env name="MINK_DRIVER_ARGS_WEBDRIVER" value='["${selenium.browser}", null, "${selenium.host}:${selenium.port}/wd/hub"]'/>
<env name="MINK_DRIVER_ARGS_WEBDRIVER" value='["${selenium.browser}", {"browserName":"chrome","chromeOptions":{"w3c": false, "args":["--no-sandbox", "--start-maximized", "--disable-gpu", "--window-size=1280,800", "--disable-dev-shm-usage", "--disable-setuid-sandbox", "--disable-web-security", "--DNS-prefetch-disable", "--disable-translate", "--ignore-certificate-errors", "--test-type", "--disable-extensions", "--incognito", "--disable-infobars"]}}, "${selenium.host}:${selenium.port}/wd/hub"]'/>
</php>
<testsuites>
<testsuite name="OpenEuropa Corporate Site Information">
Expand Down
2 changes: 1 addition & 1 deletion src/EventSubscriber/ConfigNamesMapperSubscriber.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\oe_corporate_site_info\EventSubscriber;

Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/ConceptSubset/DepartmentsAgencies.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\oe_corporate_site_info\Plugin\ConceptSubset;

Expand Down
2 changes: 1 addition & 1 deletion src/SiteInformation.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\oe_corporate_site_info;

Expand Down
2 changes: 1 addition & 1 deletion src/SiteInformationInterface.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\oe_corporate_site_info;

Expand Down
8 changes: 4 additions & 4 deletions tests/features/corporate-information.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ Feature: Corporate information
I want to make sure that the steps provided by this module work correctly.

Scenario: Set and assert site owner.
Given I set the site owner to "Directorate-General for Informatics"
Then the site owner should be set to "Directorate-General for Informatics"
Given I set the site owner to "Directorate-General for Digital Services"
Then the site owner should be set to "Directorate-General for Digital Services"

Scenario: Set and assert the site default content owner.
Given I set the site default content owner to "Directorate-General for Informatics"
Then the site default content owner should be set to "Directorate-General for Informatics"
Given I set the site default content owner to "Directorate-General for Digital Services"
Then the site default content owner should be set to "Directorate-General for Digital Services"
2 changes: 1 addition & 1 deletion tests/src/Behat/CorporateSiteInformationContext.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\oe_corporate_site_info\Behat;

Expand Down
4 changes: 2 additions & 2 deletions tests/src/Functional/CorporateSiteInfoSettingsFormTest.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\oe_corporate_site_info\Functional;

Expand Down Expand Up @@ -93,7 +93,7 @@ public function testConfigurationForm(): void {
$assert_session->fieldValueEquals('content_owners[2][target]', 'Directorate-General for Climate Action (http://publications.europa.eu/resource/authority/corporate-body/CLIMA)');

$page->fillField('Accessibility statement', 'https://example.com');
$page->selectFieldOption('content_owners[2][_weight]', -2);
$page->selectFieldOption('content_owners[2][_weight]', '-2');
$page->pressButton('Save configuration');

$assert_session->fieldValueEquals('Accessibility statement', 'https://example.com');
Expand Down

0 comments on commit 363e9ce

Please sign in to comment.