Unit Test NodeCreationTest incompatible with simplenews 4.0.0-alpha3

Created on 13 October 2023, about 1 year ago

Problem/Motivation

The phpunit test SimplenewsSchedulerNodeCreationTest fails in combination with simplenews 4.0.0-alpha3 because the function outline of Drupal\simplenews\Subscription\SubscriptionManager::subscribe has changed.

Steps to reproduce

  1. Get a Drupal 10 instance
  2. Require drupal\simplenews:4.0.0-alpha3
  3. Require drupal\simplenews_scheduler:4.0.0-alpha1
  4. Run phpunit test SimplenewsSchedulerNodeCreationTest

Proposed resolution

Change call of \Drupal::service('simplenews.subscription_manager')->subscribe(...) to suit new function outline.
Rerun Test to verify.

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇩🇪Germany JoCowood Kamp-Lintfort

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

Comments & Activities

Production build 0.71.5 2024