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

Bug: Implicit controller methods failing #3105

Closed
MGatner opened this issue Jun 15, 2020 · 3 comments
Closed

Bug: Implicit controller methods failing #3105

MGatner opened this issue Jun 15, 2020 · 3 comments
Labels
bug Verified issues on the current code behavior or pull requests that will fix them

Comments

@MGatner
Copy link
Member

MGatner commented Jun 15, 2020

Describe the bug
I don't have time to dig but my project feature tests work fine on 2901fdd but fail on latest develop whenever a route uses an implicit controller method. I suspect #3096 simply because it deals with routing but not sure of anything.

E.g.:

3) HomeTest::testGetHome
CodeIgniter\Exceptions\PageNotFoundException: Controller method is not found: index

/var/www/project/vendor/codeigniter4/codeigniter4/system/Exceptions/PageNotFoundException.php:14
/var/www/project/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php:984
/var/www/project/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php:327
/var/www/project/vendor/codeigniter4/codeigniter4/system/Test/FeatureTestTrait.php:158
/var/www/project/vendor/codeigniter4/codeigniter4/system/Test/FeatureTestTrait.php:184
/var/www/project/tests/features/HomeTest.php:9

CodeIgniter 4 version
develop

Affected module(s)
Routing, maybe Feature Tests.

Expected behavior, and steps to reproduce if appropriate
Running get('/') should load my home controller as mapped in app/Config/Routes.php

Context

  • OS: Ubuntu 18.04
  • Web server: Apache
  • PHP version: 7.3
@MGatner MGatner added the bug Verified issues on the current code behavior or pull requests that will fix them label Jun 15, 2020
@MGatner
Copy link
Member Author

MGatner commented Jun 16, 2020

Now I can't replicate this. I'm going to leave it overnight until I get back to the original project but might be a false alarm.

@MGatner
Copy link
Member Author

MGatner commented Jun 16, 2020

Having the issue on GitHub Actions now.

@MGatner
Copy link
Member Author

MGatner commented Jun 16, 2020

I've narrowed this down to a test that is causing the problem. Running the suite without it completes without issue, but with the test somehow messes with the Feature Test routes. There's nothing different about this feature test than the others, currently baffled but I will keep digging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Projects
None yet
Development

No branches or pull requests

1 participant