Commit 503ce08b authored by catch's avatar catch
Browse files

Issue #3143235 by alexpott, mondrake: Convert ::expectExceptionMessageRegExp...

Issue #3143235 by alexpott, mondrake: Convert ::expectExceptionMessageRegExp to ::expectExceptionMessageMatches

(cherry picked from commit eba9a180)
parent 62b57732
......@@ -47,7 +47,7 @@ public function testSqlException() {
]);
$this->expectException(DatabaseExceptionWrapper::class);
$this->expectExceptionMessageRegExp('/^Exception in Test filters\[test_filter\]:/');
$this->expectExceptionMessageMatches('/^Exception in Test filters\[test_filter\]:/');
$this->executeView($view);
}
......
......@@ -636,7 +636,7 @@ public function testToArraySchemaException() {
->method('getPropertiesToExport')
->willReturn(NULL);
$this->expectException(SchemaIncompleteException::class);
$this->expectExceptionMessageRegExp("/Entity type 'Mock_ConfigEntityTypeInterface_[^']*' is missing 'config_export' definition in its annotation/");
$this->expectExceptionMessageMatches("/Entity type 'Mock_ConfigEntityTypeInterface_[^']*' is missing 'config_export' definition in its annotation/");
$this->entity->toArray();
}
......
Markdown is supported
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