Verified Commit f10f050b authored by Jibran Ijaz's avatar Jibran Ijaz
Browse files

Issue #2283919 by jibran: Fixed failing HEAD and added tests for for Drupal 10.1.x.

parent 5a5740f2
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
@@ -7,10 +7,12 @@ workflows:
          matrix:
            parameters:
              php: ["8.0", "8.1"]
              drupal-version: ["9.3.x", "9.4.x", "10.0.x"]
              drupal-version: ["9.4.x", "9.5.x", "10.0.x", "10.1.x"]
            exclude:
            - php: "8.0"
              drupal-version: "10.0.x"
            - php: "8.0"
              drupal-version: "10.1.x"
  # Run nightly tests every day 8 AM.
  nightly:
    jobs:
@@ -18,10 +20,12 @@ workflows:
        matrix:
          parameters:
            php: ["8.0", "8.1"]
            drupal-version: ["9.3.x", "9.4.x", "10.0.x"]
            drupal-version: ["9.4.x", "9.5.x", "10.0.x", "10.1.x"]
          exclude:
          - php: "8.0"
            drupal-version: "10.0.x"
          - php: "8.0"
            drupal-version: "10.1.x"
    triggers:
    - schedule:
        # Weekday (22=10pm UTC). Evaluates to 8am AEST.
@@ -40,7 +44,7 @@ jobs:
      drupal-version:
        type: string
    docker:
    - image: skpr/php-circleci:<< parameters.php >>-1.x
    - image: skpr/php-circleci:<< parameters.php >>-v2-latest
      environment:
        MODULE_NAME: dynamic_entity_reference
        SIMPLETEST_BASE_URL: http://127.0.0.1:8080
@@ -76,7 +80,9 @@ jobs:
    - when:
        name: Fetch drupal 10 dependencies, dev dependencies, and module test dependencies
        condition:
          equal: [ "10.0.x", << parameters.drupal-version >> ]
          or:
          - equal: [ "10.0.x", << parameters.drupal-version >> ]
          - equal: [ "10.1.x", << parameters.drupal-version >> ]
        steps:
          - run: composer require 'drupal/hal-hal:^1.0'

@@ -130,7 +136,7 @@ jobs:
    - run:
        name: Run unit tests
        command: |
          ./vendor/bin/phpunit --configuration ./core/phpunit.xml.dist --log-junit ../build/logs/phpunit/phpunit.xml modules/${MODULE_NAME}
          ./vendor/bin/phpunit --configuration ./core/phpunit.xml.dist --log-junit ../build/logs/phpunit/phpunit.xml --exclude-group functional_javascript modules/${MODULE_NAME}
#          ./vendor/bin/phpunit --verbose  --configuration ./core/phpunit.xml.dist --log-junit ../build/logs/phpunit/phpunit.xml modules/${MODULE_NAME}
#          ./vendor/bin/phpunit --debug --verbose  --configuration ./core/phpunit.xml.dist --log-junit ../build/logs/phpunit/phpunit.xml modules/${MODULE_NAME}

+1 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@ use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
 * Ensures that Dynamic Entity References field works correctly.
 *
 * @group dynamic_entity_reference
 * @group functional_javascript
 */
class DynamicEntityReferenceTest extends WebDriverTestBase {