When Taxonomy Access Fix is enabled on a site where tests are run, the EntityMetadataTaxonomyAccess tests fail. The access callback checks if the taxonomy_access_fix_access function exists. This normally is a sign that the module is enabled, but inside the test environment, it is not enabled.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Stevel created an issue. See original summary.

Stevel’s picture

Assigned: Stevel » Unassigned
Status: Active » Needs review
FileSize
666 bytes

This patch checks module_exists() instead of function_exists(), so even if taxonomy_access_fix.module was loaded earlier, but the module is not enabled, it is not called here.

Chris Matthews’s picture

The 2 year old patch in #2 to callbacks.inc applied cleanly to the latest entity 7.x-1.x-dev and (if still relevant) needs review.