When running simpletest and enabling Zen, the following exception is thrown:
"Call to undefined function _zen_theme()"

Patch pending.

Comments

grasmash’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new858 bytes

Attaching patch

johnalbin’s picture

Version: 7.x-5.4 » 7.x-5.x-dev
johnalbin’s picture

Status: Needs review » Postponed (maintainer needs more info)

drupal_get_path('theme', 'zen') doesn't work? huh?

johnalbin’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
nigelcunningham’s picture

Component: PHP/JS code » Component markup (CSS/Sass/HTML/Twig)
Status: Closed (cannot reproduce) » Active
StatusFileSize
new725 bytes

I can reproduce this by seeking to run Behat from Phing, which sets the working directory to not be equal to DRUPAL_ROOT. The fix is to use DRUPAL_ROOT, per the patch I'm attaching.

Regards,

Nigel

nigelcunningham’s picture

Component: Component markup (CSS/Sass/HTML/Twig) » PHP code
nigelcunningham’s picture

steinmb’s picture

Title: Call to undefined function _zen_theme() » Call to undefined function _zen_theme() running Behat
Status: Active » Needs review
johnalbin’s picture

Status: Needs review » Reviewed & tested by the community

johnalbin’s picture

Status: Reviewed & tested by the community » Fixed

Thank you!

nigelcunningham’s picture

You're welcome; thanks for merging the patch!

Status: Fixed » Closed (fixed)

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