Skip to content

Requests that are not mocked are not recorded in assertAllTapperRequestsLike #23

@jwadhams

Description

@jwadhams

\Carsdotcom\ApiRequest\Testing\GuzzleTapper::response only records a request into the private calls Collection after finding a match.

This is causing confusion in a branch I'm working on where I'm replacing some request mocks from one API to another, if I remove mocks important to the system under test, the calls that are receiving an OutOfBoundsException aren't even logged, so the test behavior changes but as a maintainer it's difficult to comprehend why.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions