Open elburro1887 opened 3 years ago
This sounds pretty similar to the following topic: https://magento.stackexchange.com/questions/323506/getting-the-configuration-file-has-changed-run-the-appconfigimport-d This would suggest the integration test database is in an inconsistent state, perhaps because of other modules being present that break the setup.
Could you test for the regular Integration Tests setup (so, of the Magento core) to see if the problem occurs there as well? Perhaps the issue you are having is not related to the Reach Digital Test Framework (which would justify posting here) but related to the specific modules you have installed in the instance where you run the tests.
My test looks like this:
Then when I run the integration test with the plugin, the call to $this->dispatch() leads to this error:
Maybe this is related to using/extending AbstractController?
EDIT: So when I run a test that uses
extend \PHPUnit\Framework\TestCase
it works.Does anyone know what I can do to be able to use Controller Test cases?