Tests fail with "Call to a member function isPublished() on bool"

Created on 29 April 2024, about 1 year ago
Updated 29 May 2024, about 1 year ago

Problem/Motivation

The phpunit tests are failing with two errors

1)
    Drupal\Tests\scheduler_content_moderation_integration\Functional\EventsTest::testEvents
    with data set "#node" ('node', 'page')
    Error: Call to a member function isPublished() on bool
    
    /builds/project/scheduler_content_moderation_integration/tests/src/Functional/EventsTest.php:43
    /builds/project/scheduler_content_moderation_integration/vendor/phpunit/phpunit/src/Framework/TestResult.php:729
    
    2)
    Drupal\Tests\scheduler_content_moderation_integration\Functional\EventsTest::testEvents
    with data set "#media" ('media', 'soundtrack')
    Error: Call to a member function isPublished() on null

Proposed resolution

Remaining tasks

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Testing

Created by

πŸ‡¬πŸ‡§United Kingdom jonathan1055

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024