Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When executing UltimateCronQueueTest, fatal error occurs (printscreen provided)
Proposed resolution
Fix the test.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#5 | head_test_fails-2783091-5.patch | 8 KB | Ginovski |
| |||
#3 | head_test_fails-2783091-3.patch | 902 bytes | Ginovski |
| |||
UltimateCronQueueTest_fail.png | 14.4 KB | Ginovski |
Comments
Comment #2
Ginovski CreditAttribution: Ginovski at MD Systems GmbH commentedComment #3
Ginovski CreditAttribution: Ginovski at MD Systems GmbH commentedAfter some changes in the core, somehow the CronQueueTest was moved and it is not in the same directory as it was.
The usage of that class in UltimateCronQueueTest was not working ( it was Undefined class).
So the CronQueueTest was found in the kernel tests directory in the core module "System", and UltimateCronQueueTest is a web test.
1. I changed the base class for UltimateCronTest
2. I added the needed modules from CronQueueTest into the UltimateCronQueueTest.
There are still some test fails in CronQueueTest, but UltimateCronQueueTest is no longer related to that class.
Comment #4
BerdirThis fix is not correct.
We don't want just the modules, it is an actual test class, and we want to make sure those methods run as well.
So the fix it to extend from the new class and convert this test into a kernel test as well.
Comment #5
Ginovski CreditAttribution: Ginovski at MD Systems GmbH commented1. Changed the UltimateCronQueueTest from web to kernel test.
2. Add setup method for the schema and module load.
3. Override on the testExceptions() method from CronQueueTest and add a manual call to system_cron().
Comment #7
BerdirThanks.