Skip to content

Commit

Permalink
Allow tests to run against PHP Unit ^9 in D9.
Browse files Browse the repository at this point in the history
  • Loading branch information
arlina-espinoza committed Dec 7, 2020
1 parent d99919e commit 057f91a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .circleci/RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,19 @@ public function drupalVersion($drupalCoreVersion)
$config->require->{"drupal/core-dev"} = '^9.1';
$config->require->{"phpspec/prophecy-phpunit"} = '^2';

/**
* Allow tests to run against PHP Unit ^9.
*
* @todo Remove once the following issue has been fixed in a stable
* release from Drupal Core.
*
* @see https://www.drupal.org/project/drupal/issues/3186443
*/
if (!isset($config->extra->{"patches"}->{"drupal/core"})) {
$config->extra->{"patches"}->{"drupal/core"} = new \stdClass();
}
$config->extra->{"patches"}->{"drupal/core"}->{"PHPUnit 9.5 Call to undefined method ::getAnnotations()"} = 'https://www.drupal.org/files/issues/2020-12-04/3186443-1.patch';

break;

case '8':
Expand Down

0 comments on commit 057f91a

Please sign in to comment.