In a visual flow that is autolaunched on Opportunity creation. In it I have a lookup element to a custom setting that returns a string based on a date value.
When I run this in the UI and create an Opp everything works fine, but when I create an Opp while running an apex test class the custom setting lookup always returns null. Is there a reason this doesn't work in an apex test class or it is just a bug?
Another answer suggested rebuilding the custom settings records, which I did with no luck.