When the Field placeholder module is present (not even necessarily installed) on a site that doesn't have the i18n_field module, if you access the Simpletest UI you will be presented with the following Fatal error:

Fatal error: Class 'Drupali18nTestCase' not found in ...

This is due to Simpletest including all tests regardless of whether the modules are enabled, and the i18n_field_placeholder test extending a class without checking if said class is present in the current codebase.

This is a critical issue as it prevents access to the Simpletest interface.

CommentFileSizeAuthor
#2 simpletest_fix-2756851-2.patch488 bytesdeciphered

Comments

Deciphered created an issue. See original summary.

deciphered’s picture

Status: Active » Needs review
StatusFileSize
new488 bytes

Simple fix, a conditional check to ensure that class exists at the start of the test file.

dmsmidt’s picture

Status: Needs review » Reviewed & tested by the community

Maybe not beautiful, but works as advertised.

  • plopesc committed f994ff8 on 7.x-2.x authored by Deciphered
    Issue #2756851 by Deciphered: Fatal error: Class 'Drupali18nTestCase'...
plopesc’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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