Unit Test NodeCreationTest incompatible with simplenews 4.0.0-alpha3

Created on 13 October 2023, 9 months 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.69.0 2024