Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-386

Assert upsertedIds field in bulkWrite CRUD spec tests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.3.0
    • Fix Version/s: 1.5.0
    • Labels:
      None

      Description

      The test harness for CRUD spec tests incorrectly checks for an "upsertedId" field in the result for a bulk write. This should be checking for "upsertedIds" instead.

      This bug dates back to 762b6e9 for PHPLIB-295; however, it went unnoticed as the only bulk write tests at the time were for arrayFilters and did not perform upserts.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: