Commit 897fee6b authored by Tim Hunt's avatar Tim Hunt
Browse files

unit tests MDL-26029 fix notices from CheckSpecifiedFieldsExpectation.

parent 5a7f931e
......@@ -180,6 +180,8 @@ class CheckSpecifiedFieldsExpectation extends SimpleExpectation {
// OK
} else if (is_null($value) && is_null($actual->$key)) {
// OK
} else if (!isset($actual->$key)) {
$mismatches[] = $key . ' (expected [' . $value . '] but was missing.';
} else {
$mismatches[] = $key . ' (expected [' . $value . '] got [' . $actual->$key . '].';
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment