mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 22:28:51 +01:00
Fix errors in tests RichTextToEmailHtmlConverterCest (#5241)
This commit is contained in:
parent
9bc9f89ded
commit
b138a00b38
@ -52,12 +52,12 @@ class RichTextToEmailHtmlConverterCest
|
||||
|
||||
protected function linkIsDetectedInEmail(string $emailMessage, array $link): bool
|
||||
{
|
||||
return (bool)preg_match('/with link <a href="' . preg_quote($link['url'], '/') . '".+?>' . preg_quote($link['text'], '/') . '<\/a>/is', $emailMessage);
|
||||
return (bool)preg_match('/with link <a href="' . preg_quote($link['url'], '/') . '".+?> ' . preg_quote($link['text'], '/') . ' <\/a>/is', $emailMessage);
|
||||
}
|
||||
|
||||
protected function linkedImageIsDetectedInEmail(string $emailMessage, array $link): bool
|
||||
{
|
||||
return (bool)preg_match('/with linked image <a href="' . preg_quote($link['url'], '/') . '".+?><img.+?src=".+?&token=.+?".+?><\/a>/is', $emailMessage);
|
||||
return (bool)preg_match('/with linked image <a href="' . preg_quote($link['url'], '/') . '".+?> <img.+?src=".+?&token=.+?".+?><\/a>/is', $emailMessage);
|
||||
}
|
||||
|
||||
protected function createFile(): File
|
||||
|
Loading…
x
Reference in New Issue
Block a user