Stop adding drupal/core-dev and phpspec/prophecy-phpunit, tests cannot be executed in sandboxes

Created on 22 February 2024, about 1 year ago

Problem / Motivation

We do not need to add these extra dependencies, since no development operations are allowed (running tests, PHPStan, etc.)

Code to remove

```
      // We need to require drupal/core and drupal/core-dev at the requested
      // Drupal core version, otherwise `composer update` could bump the
      // versions to the latest available one.
      $commands[] = sprintf('cd stm && composer require --dev --no-update drupal/core:%1$s drupal/core-dev:%1$s', $parameters['drupal_core_version']);
      // The phpspec/prophecy-phpunit check was added in 9.1.6
      // @see https://www.drupal.org/i/3182653
      // @see https://git.drupalcode.org/project/drupal/-/commit/94d0c1f
      if (Semver::satisfies($parameters['drupal_core_version'], '>=9.1.6')) {
        $commands[] = 'cd stm && composer require --dev --no-update phpspec/prophecy-phpunit:^2';
      }
```
πŸ“Œ Task
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mglaman WI, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024