8000 [11.x] Fix `Illuminate\Support\EncodedHtmlString` from causing breaking change by crynobone · Pull Request #55149 · laravel/framework · GitHub
[go: up one dir, main page]

Skip to content

[11.x] Fix Illuminate\Support\EncodedHtmlString from causing breaking change #55149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Mar 24, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
wip
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Mar 24, 2025
commit fd0d9fac6eef065c3d0494728e665285d9427544
14 changes: 7 additions & 7 deletions tests/Integration/Mail/MailableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ public function testItCanAssertMarkdownEncodedStringUsingTemplate($given, $expec

$mailable = new class($user) extends Mailable
{
public $theme = 'taylor';

public function __construct(public User $user)
{
//
Expand All @@ -102,28 +104,26 @@ public function build()

public static function markdownEncodedTemplateDataProvider()
{
$hi = '<em style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, Helvetica, Arial, sans-serif, \'Apple Color Emoji\', \'Segoe UI Emoji\', \'Segoe UI Symbol\'; position: relative;">Hi</em>';

yield ['[Laravel](https://laravel.com)', "{$hi} [Laravel](https://laravel.com)"];
yield ['[Laravel](https://laravel.com)', '<em>Hi</em> [Laravel](https://laravel.com)'];

yield [
'![Welcome to Laravel](https://laravel.com/assets/img/welcome/background.svg)',
"{$hi} ![Welcome to Laravel](https://laravel.com/assets/img/welcome/background.svg)",
'<em>Hi</em> ![Welcome to Laravel](https://laravel.com/assets/img/welcome/background.svg)',
];

yield [
'Visit https://laravel.com/docs to browse the documentation',
"{$hi} Visit https://laravel.com/docs to browse the documentation",
'<em>Hi</em> Visit https://laravel.com/docs to browse the documentation',
];

yield [
'Visit <https://laravel.com/docs> to browse the documentation',
"{$hi} Visit &lt;https://laravel.com/docs&gt; to browse the documentation",
'<em>Hi</em> Visit &lt;https://laravel.com/docs&gt; to browse the documentation',
];

yield [
'Visit <span>https://laravel.com/docs</span> to browse the documentation',
"{$hi} Visit &lt;span&gt;https://laravel.com/docs&lt;/span&gt; to browse the documentation",
'<em>Hi</em> Visit &lt;span&gt;https://laravel.com/docs&lt;/span&gt; to browse the documentation',
];
}
}
Loading
0