Closed lonnieezell closed 1 year ago
Ah, this is an issue with CodeIgniter's FeatureTestTrait
. It instantiates the IncomingRequest class directly, instead of using the Service.
https://github.com/codeigniter4/CodeIgniter4/blob/develop/system/Test/FeatureTestTrait.php#L295
Closing.
This library works great for normal use. However, when running in a feature test I end up getting the following error:
I have changed the
IncomingRequest
use statement in the BaseController as recommended in the README with no change.A simple test would be: