Browse Source

Remove future versions we're not ready for.

pull/886/head
Rosie Le Faive 2 years ago
parent
commit
2d8df5a226
  1. 16
      .github/workflows/build-2.x.yml
  2. 9
      tests/src/Functional/IslandoraFunctionalTestBase.php

16
.github/workflows/build-2.x.yml

@ -23,19 +23,13 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
php-versions: ["7.4", "8.0", "8.1"] php-versions: ["7.4", "8.0"]
# PHP 8.1 fails - see https://github.com/Islandora/islandora/issues/887
test-suite: ["kernel", "functional", "functional-javascript"] test-suite: ["kernel", "functional", "functional-javascript"]
drupal-version: ["9.3.x", "9.4.x", "9.5.x-dev", "10.0.x-dev"] drupal-version: ["9.3.x", "9.4.x", "9.5.x-dev"]
# Not yet Drupal 10 ready - see https://github.com/Islandora/islandora/issues/888
mysql: ["8.0"] mysql: ["8.0"]
include: allowed_failure: [false]
- allowed_failure: false
- php-versions: "8.1"
allowed_failure: true
exclude:
- php-versions: "7.4"
drupal-version: "10.0.x-dev"
- php-versions: "8.0"
drupal-version: "10.0.x-dev"
name: PHP ${{ matrix.php-versions }} | drupal ${{ matrix.drupal-version }} | mysql ${{ matrix.mysql }} | test-suite ${{ matrix.test-suite }} name: PHP ${{ matrix.php-versions }} | drupal ${{ matrix.drupal-version }} | mysql ${{ matrix.mysql }} | test-suite ${{ matrix.test-suite }}

9
tests/src/Functional/IslandoraFunctionalTestBase.php

@ -278,11 +278,13 @@ EOD;
* Creates a test context. * Creates a test context.
*/ */
protected function createContext($label, $name) { protected function createContext($label, $name) {
$this->drupalPostForm('admin/structure/context/add', [ $this->drupalGet('admin/structure/context/add');
$values = [
'label' => $label, 'label' => $label,
'name' => $name, 'name' => $name,
], ];
$this->t('Save')); $this->submitForm($values, 'Save');
$this->assertSession()->statusCodeEquals(200); $this->assertSession()->statusCodeEquals(200);
} }
@ -455,3 +457,4 @@ EOD;
} }
} }

Loading…
Cancel
Save