diff options
author | Vitor Mattos <vitor@php.rio> | 2023-03-21 10:32:43 -0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-04-04 17:08:49 +0200 |
commit | 89f93d4732e5b625d3149c6c65dc21e9e65a59e0 (patch) | |
tree | 1798bb1060ca173554548c3b777c09fde4381f3a /tests/integration | |
parent | 567c7bbc3a364337af4454940ee6e71d41f83acc (diff) |
Make the version optional
We only have the query string "version" when send an avatar after the
first version of avatar
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'tests/integration')
-rw-r--r-- | tests/integration/features/bootstrap/FeatureContext.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php index cf41d210b..e341d96d0 100644 --- a/tests/integration/features/bootstrap/FeatureContext.php +++ b/tests/integration/features/bootstrap/FeatureContext.php @@ -2230,7 +2230,7 @@ class FeatureContext implements Context, SnippetAcceptingContext { if (isset($messages[$i]['messageParameters']['object']['icon-url'])) { $result = preg_match('/"\{VALIDATE_ICON_URL_PATTERN\}"/', $expected[$i]['messageParameters'], $matches); if ($result) { - Assert::assertMatchesRegularExpression('/avatar\?v=\w+/', $messages[$i]['messageParameters']['object']['icon-url']); + Assert::assertMatchesRegularExpression('/avatar(\?v=\w+)?/', $messages[$i]['messageParameters']['object']['icon-url']); $expected[$i]['messageParameters'] = str_replace($matches[0], json_encode($messages[$i]['messageParameters']['object']['icon-url']), $expected[$i]['messageParameters']); } } |