Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.0 Test controller with prefix, Controller could not be found. #3636

Closed
rafrsr opened this issue Jun 4, 2014 · 2 comments
Closed

3.0 Test controller with prefix, Controller could not be found. #3636

rafrsr opened this issue Jun 4, 2014 · 2 comments
Assignees
Milestone

Comments

@rafrsr
Copy link

rafrsr commented Jun 4, 2014

I try to create a test case to the following controller

Commissions\Controller\Admin\ManageController

Commissions -> is a plugin
the manage controller works under the prefix admin, trying to create the test for this controller always return the following error

Cake\Controller\Error\MissingControllerException : Controller class ManageController could not be found.

the action is called in the test with the following statement

$this->_testAction('/admin/commissions/manage');

in the browser this url works fine, but in the test always return the above mentioned error.

I'm missing something? I may be doing something wrong?

@dereuromark dereuromark added this to the 3.0.0 milestone Jun 4, 2014
@markstory markstory self-assigned this Jun 4, 2014
@markstory
Copy link
Member

I can look into this.

markstory added a commit that referenced this issue Jun 6, 2014
The generated controller class needs to be aware that it is in a prefix
and adjust the classname + viewPath accordingly.

Refs #3636
@markstory
Copy link
Member

Closing as there is an open pull request now.

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

No branches or pull requests

3 participants