Commit eba9a180 authored by catch's avatar catch
Browse files

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

Issue #3143235 by alexpott, mondrake: Convert ::expectExceptionMessageRegExp to ::expectExceptionMessageMatches
parent f73194d0
...@@ -47,7 +47,7 @@ public function testSqlException() { ...@@ -47,7 +47,7 @@ public function testSqlException() {
]); ]);
$this->expectException(DatabaseExceptionWrapper::class); $this->expectException(DatabaseExceptionWrapper::class);
$this->expectExceptionMessageRegExp('/^Exception in Test filters\[test_filter\]:/'); $this->expectExceptionMessageMatches('/^Exception in Test filters\[test_filter\]:/');
$this->executeView($view); $this->executeView($view);
} }
......
...@@ -636,7 +636,7 @@ public function testToArraySchemaException() { ...@@ -636,7 +636,7 @@ public function testToArraySchemaException() {
->method('getPropertiesToExport') ->method('getPropertiesToExport')
->willReturn(NULL); ->willReturn(NULL);
$this->expectException(SchemaIncompleteException::class); $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(); $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