Unified test runner does not evaluate $$exists within $$unsetOrMatches

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Unknown
    • 1.13.0-beta1, 1.13.0
    • Affects Version/s: 1.8.0
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      $$unsetOrMatches accepts anything as its argument, and should recursively match an existing value in the actual document against that argument. While POC-ing test changes for DRIVERS-1713, I realized that PHPLIB's Matches constraint doesn't actually handle the case where $exists appears directly within $$unsetOrMatches. This is due to Matches::assertMatchesOperator() not having a case for $exists, which is presently only handled during document iteration.

              Assignee:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: