I was trying to test a complex object returned from my API that has some nulled fields (such as updated_date) but it was always failling. After some investigation I noticed that the arrayIntersectAssocRecursive skips null values and that's probably what's creating the failure, since the return of that method is the same array, but with those null keys removed - breaking the comparison.
I have little idea of what do there, afraid of breaking other stuff as I have no experience with Codecept internals... Any idea?
I was trying to test a complex object returned from my API that has some nulled fields (such as
updated_date) but it was always failling. After some investigation I noticed that thearrayIntersectAssocRecursiveskips null values and that's probably what's creating the failure, since the return of that method is the same array, but with those null keys removed - breaking the comparison.I have little idea of what do there, afraid of breaking other stuff as I have no experience with Codecept internals... Any idea?