Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

YiiDebugToolbar makes unit test crash #106

Open
mogab9 opened this issue Feb 23, 2014 · 0 comments
Open

YiiDebugToolbar makes unit test crash #106

mogab9 opened this issue Feb 23, 2014 · 0 comments

Comments

@mogab9
Copy link

mogab9 commented Feb 23, 2014

YiiDebugToolbar makes my unit test fail when It is enabled in my main.conf file. I think that I have this problem when I unit test a feature and there's a call to a controller inside my test.

My fix was to add this at the beginning of init() in YiiDebugToolbarRoute.php:

if (false === $this->enabled) return;

Works well after that =]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant