kwartzlab / kos-base

KwartzlabOS
4 stars 1 forks source link

Bug: PHPUnit `AnnounceMailingListSubscribeTest` integration test fails erroneously if test data contains escaped special characters #27

Closed azend closed 5 months ago

azend commented 6 months ago
1) Tests\Unit\Mail\AnnounceMailingListSubscribeTest::testItBuildsWithExpectedRecipientAndContent
Did not see expected text [Name.O'Reilly@example.com] within text email body.
Failed asserting that 'subscribe w1nd5h0wl1ng nodigest address=Name.O'Reilly@example.com' contains "Name.O'Reilly@example.com".

/app/vendor/laravel/framework/src/Illuminate/Mail/Mailable.php:1371
/app/tests/Unit/Mail/MailingListSubscribeTest.php:26
azend commented 5 months ago

This bug is a little bit more complicated than it appeared but only occurs when seeding data to a development database with special characters. I'm going to close this issue and we can revisit it if it ever becomes an issue and we have spare cycles.