diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..f145b817850a17693ca8d2b2c18b12d67a204154 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,11 @@ +# View these include files at https://git.drupalcode.org/project/gitlab_templates/ +include: + - project: $_GITLAB_TEMPLATES_REPO + ref: $_GITLAB_TEMPLATES_REF + file: + - '/includes/include.drupalci.main.yml' + - '/includes/include.drupalci.variables.yml' + - '/includes/include.drupalci.workflows.yml' + +variables: + _TARGET_CORE: "9.5.10" diff --git a/composer.json b/composer.json index 7e63a0a5d78f10dec68deb871401de6789d406c3..9c0517d0ddd403f235ff17ac28cac847184fb0d0 100644 --- a/composer.json +++ b/composer.json @@ -10,9 +10,7 @@ } ], "require": { - "php": ">=7.2", - "drupal/core": "^8.7.7 || ^9", - "drupal/purge": "^3.0.0-beta9" + "drupal/purge": "^3.4" }, "extra": { "branch-alias": { diff --git a/config/schema/purge_queuer_url.schema.yml b/config/schema/purge_queuer_url.schema.yml index 5a41c4cbc95f3b9b90a7a6c6bc176861bd47d402..d499d4bb621b8f583ae7c306d39ac3d89ff4c6e2 100644 --- a/config/schema/purge_queuer_url.schema.yml +++ b/config/schema/purge_queuer_url.schema.yml @@ -1,4 +1,4 @@ - # Schema for the configuration files of the purge_queuer_url module. +# Schema for the configuration files of the purge_queuer_url module. purge_queuer_url.settings: type: config_object label: 'purge_queuer_url settings.' diff --git a/src/Form/ConfigurationForm.php b/src/Form/ConfigurationForm.php index 3dddef2743804291fb6484f7a4a1eff6f13f6e58..84e5ec491a644b33dfdbc89fad19085b6a786dc5 100644 --- a/src/Form/ConfigurationForm.php +++ b/src/Form/ConfigurationForm.php @@ -152,7 +152,7 @@ class ConfigurationForm extends QueuerConfigFormBase { if (!isset($form['blacklist']['blacklist'][$delta])) { $element = [ '#type' => 'textfield', - '#default_value' => isset($blacklist[$delta]) ? $blacklist[$delta] : '', + '#default_value' => $blacklist[$delta] ?? '', ]; $form['blacklist']['blacklist'][$delta] = $element; } diff --git a/tests/src/Functional/QueuerConfigFormTest.php b/tests/src/FunctionalJavascript/QueuerConfigFormTest.php similarity index 93% rename from tests/src/Functional/QueuerConfigFormTest.php rename to tests/src/FunctionalJavascript/QueuerConfigFormTest.php index 3de2124367c67a4c3726304fc54840fb9ff10266..7819d18258428d759ec708357d6a2194fb66b39f 100644 --- a/tests/src/Functional/QueuerConfigFormTest.php +++ b/tests/src/FunctionalJavascript/QueuerConfigFormTest.php @@ -1,9 +1,9 @@ <?php -namespace Drupal\Tests\purge_queuer_url\Functional; +namespace Drupal\Tests\purge_queuer_url\FunctionalJavascript; use Drupal\purge_queuer_url\Form\ConfigurationForm; -use Drupal\Tests\purge_ui\Functional\Form\Config\QueuerConfigFormTestBase; +use Drupal\Tests\purge_ui\FunctionalJavascript\Form\Config\QueuerConfigFormTestBase; /** * Tests \Drupal\purge_queuer_url\Form\ConfigurationForm.