Once TestingMailSystem is set, as soon as the Entity API is invoked, the following error crashes every single page:

Fatal error: Call to undefined function entity_get_info() in /var/www/sites/all/modules/contrib/entity/includes/entity.inc on line 55


mstef’s picture

Title:Enabled TestingMailSystem crashes Entity API» Enabling TestingMailSystem crashes Entity API
thewilkybarkid’s picture

This is the same as #1049104: Fatal error: Call to undefined function entity_get_property_info(). Emails are stored in the drupal_test_email_collector variable, and one or more of these contains an entity. Drupal unserializes everything prior to the code base being fully loaded, and the entity's unserialization process calls the function that isn't yet available.