Skip to content

Commit

Permalink
Merge pull request #248 from mikemadison13/247
Browse files Browse the repository at this point in the history
Fixes #247 to support PHP 8.1.x and Drupal 10.x.
  • Loading branch information
jhedstrom authored May 6, 2022
2 parents d7c38bd + e4ea4d7 commit 53f73bf
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ composer.lock
reports
vendor
drush

.phpunit.result.cache
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
language: php

php:
- 7.3
- 7.4
- 8.0
- 8.1

install:
- composer install
Expand Down
22 changes: 14 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,19 @@
}
],
"require": {
"php": ">=5.6",
"symfony/process": "~2.5|~3.0|~4.4",
"symfony/dependency-injection": "~2.6|~3.0|~4.4",
"drupal/core-utility": "^8.4 || ^9"
"php": ">=7.4",
"symfony/process": "~2.5|~3.0|~4.4|^6",
"symfony/dependency-injection": "~2.6|~3.0|~4.4|^6",
"drupal/core-utility": "^8.4 || ^9 || ^10.0.0-alpha1"
},
"require-dev": {
"drupal/coder": "~8.3.0",
"phpspec/phpspec": "~2.0 || ~4.0 || ~6.1",
"phpunit/phpunit": "~6.0 || ~7.0",
"mockery/mockery": "0.9.4",
"phpspec/phpspec": "~2.0 || ~4.0 || ~6.1 || dev-main",
"phpunit/phpunit": "~6.0 || ~7.0 || ^9",
"mockery/mockery": "^0.9.4",
"drush-ops/behat-drush-endpoint": "*",
"jakub-onderka/php-parallel-lint": "^1.0"
"php-parallel-lint/php-parallel-lint": "^1.0",
"dms/phpunit-arraysubset-asserts": "^0.4.0"
},
"scripts": {
"test": [
Expand All @@ -45,5 +46,10 @@
"branch-alias": {
"dev-master": "2.2.x-dev"
}
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
4 changes: 3 additions & 1 deletion tests/Drupal/Tests/Driver/Drupal7FieldHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace Drupal\Tests\Driver;

use DMS\PHPUnitExtensions\ArraySubset\Assert;

/**
* Tests the Drupal 7 field handlers.
*/
Expand Down Expand Up @@ -32,7 +34,7 @@ public function testFieldHandlers($class_name, $entity, $entity_type, array $fie

$field_name = $field['field_name'];
$expanded_values = $handler->expand($this->values($entity->$field_name));
$this->assertArraySubset($expected_values, $expanded_values);
Assert::assertArraySubset($expected_values, $expanded_values);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/Drupal/Tests/Driver/FieldHandlerAbstractTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ abstract class FieldHandlerAbstractTest extends TestCase {
/**
* {@inheritdoc}
*/
public function tearDown() {
public function tearDown(): void {
\Mockery::close();
}

Expand Down

0 comments on commit 53f73bf

Please sign in to comment.