Open bwaidelich opened 1 year ago
Just to have it here:
Maybe we should roll (the addition of the Testing context condition) back together with the test and see if we can come up with a way to enable it for one test, recompile do test and flush/reset afterwards. It might just make sense to introduce this as a setting and use that in the condition (and set the setting differently per context), that way it would be easier to set it on a case by case basis and people could disable it if it causes issues. Maybe we can then overwrite the setting for one test with a pre/post flush? IDK.
Is there an existing issue for this?
Current Behavior
Loading entities in some
Testing
context leads to an exception.E.g. the example below returns
and logs the follwing exception:
Expected Behavior
The accounts should be returned and no exception thrown
Steps To Reproduce
In an installation with at least one account, create the following CLI command controller:
and execute it with
Environment
Anything else?
For the record:
With FLOW_CONTEXT=Development and FLOW_CONTEXT=Production everything works as expected