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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Ginovski created an issue. See original summary.

Ginovski’s picture

Issue summary: View changes
Ginovski’s picture

Status: Active » Needs review
FileSize
902 bytes

After 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.

Berdir’s picture

Status: Needs review » Needs work

This 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.

Ginovski’s picture

Status: Needs work » Needs review
FileSize
8 KB

1. 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().

  • Berdir committed 1a5629f on 8.x-2.x authored by Ginovski
    Issue #2783091 by Ginovski, Berdir: Fix HEAD test fails in ultimate cron
    
Berdir’s picture

Status: Needs review » Fixed

Thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.