Skip to content

REST::seeResponseContainsJson fails with null keys #381

@igorsantos07

Description

@igorsantos07

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions