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)
75
75
return $ o ;
76
76
}
77
77
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
+
78
89
public static function fromRetryableReads (stdClass $ operation )
79
90
{
80
91
$ o = new self ();
Original file line number Diff line number Diff line change @@ -158,6 +158,7 @@ public static function fromCrud(stdClass $operation)
158
158
{
159
159
$ o = new self ($ operation );
160
160
161
+ $ o ->errorExpectation = ErrorExpectation::fromCrud ($ operation );
161
162
$ o ->resultExpectation = ResultExpectation::fromCrud ($ operation , $ o ->getResultAssertionType ());
162
163
163
164
if (isset ($ operation ->collectionOptions )) {
You can’t perform that action at this time.
0 commit comments