diff --git a/core/modules/user/src/Tests/Views/UserChangedTest.php b/core/modules/user/src/Tests/Views/UserChangedTest.php index 290dabf..7ee4a2c 100644 --- a/core/modules/user/src/Tests/Views/UserChangedTest.php +++ b/core/modules/user/src/Tests/Views/UserChangedTest.php @@ -49,7 +49,9 @@ public function testChangedField() { $this->drupalGet($path, $options); - $this->assertText(t('Updated date') . ': ' . date('Y-m-d', REQUEST_TIME)); + $this->assertTextPattern('/' . preg_quote(t('Updated date'), '/') . '\:\s+' + . preg_quote(date('Y-m-d', REQUEST_TIME), '/') + . '/'); } }