Active
Project:
Scheduler
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 May 2026 at 14:01 UTC
Updated:
13 May 2026 at 14:01 UTC
Jump to comment: Most recent
While working on #3355087: Support for non-bundle entity types I used an entity type that does not implement EntityPublishedInterface and caused a crash at scheduler.module:828/836
Drupal\Tests\scheduler\Functional\SchedulerDeleteEntityTest::testDeleteEntityWithPastDates with data set "#entity_test_no_bundle"
Error: Call to undefined method Drupal\entity_test\Entity\EntityTestNoBundle::setUnpublished()
/builds/issue/scheduler-3355087/scheduler.module:836
if ($entity instanceof EntityPublishedInterface) {
$entity->setPublished(); // or setUnpublished()
}
Or validate scheduler plugins are targeting entity types which implement EntityPublishedInterface
Comments