Skip to content

Bug: Implicit controller methods failing #3105

Description

@MGatner

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions