Wednesday, August 1, 2012

ControllerTestCase::testAction() causes "Error: [MissingControllerException] Controller class WebrootController could not be found"

Hi

I am trying to learn how to run unit tests in my cake 2.2 app but recieve the following error in error.log when attempting to run $this->testAction('/controller/action'); in my test class:

2012-08-01 14:29:24 Error: [MissingControllerException] Controller class WebrootController could not be found.
#0 /var/www/htdocs/app/webroot/index.php(111): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}

I don't recieve this error at any other time and am now kind of stuck.

It may be worth noting that my cakephp core resides in a seperate directory and I have changed the value of the "CAKE_CORE_INCLUDE_PATH" constant in my webroot/index.php to match.

Does anyone have any ideas of what could be causing this?

Thanks
Adrian

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: