File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,17 @@ public static function fromChangeStreams(stdClass $result)
7575 return $ o ;
7676 }
7777
78+ public static function fromCrud (stdClass $ result )
79+ {
80+ $ o = new self ();
81+
82+ if (isset ($ result ->error )) {
83+ $ o ->isExpected = $ result ->error ;
84+ }
85+
86+ return $ o ;
87+ }
88+
7889 public static function fromRetryableReads (stdClass $ operation )
7990 {
8091 $ o = new self ();
Original file line number Diff line number Diff line change @@ -158,6 +158,7 @@ public static function fromCrud(stdClass $operation)
158158 {
159159 $ o = new self ($ operation );
160160
161+ $ o ->errorExpectation = ErrorExpectation::fromCrud ($ operation );
161162 $ o ->resultExpectation = ResultExpectation::fromCrud ($ operation , $ o ->getResultAssertionType ());
162163
163164 if (isset ($ operation ->collectionOptions )) {
You can’t perform that action at this time.
0 commit comments