yii-debug-toolbar icon indicating copy to clipboard operation
yii-debug-toolbar copied to clipboard

YiiDebugToolbar makes unit test crash

Open mogab9 opened this issue 11 years ago • 0 comments

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 =]

mogab9 avatar Feb 23 '14 11:02 mogab9