-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
Related to PHPC-1222, with comments:
https://github.com/mongodb/mongo-php-driver/pull/870/files#r199523353
If I understand correctly, this test was only using executeCommand() so that you could inspect the error label by calling CommandException::getResultDocument(). I think this should be rewritten to execute a bulk write and then call hasErrorLabel on the BulkWriteException.
Instead of updating the test case, it should be a clone with modifications.
- related to
-
PHPC-1222 Implement accessor for error labels on exception classes
- Closed