Skip to content

Commit

Permalink
Added a base64 test
Browse files Browse the repository at this point in the history
  • Loading branch information
Toflar committed Nov 18, 2024
1 parent ffffe5f commit 8c10cd4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/Gateway/MailerGatewayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ public static function embeddingHtmlImagesProvider(): iterable
'foobar' => '/files/contaodemo/media/content-images/DSC_5276.jpg',
],
];

yield 'Test ignores a base64 encoded image' => [
'<html><body><p>img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red Dot"></p></body></html>',
[],
[],
];
}

private function createVfsCollection(): VirtualFilesystemCollection
Expand Down

0 comments on commit 8c10cd4

Please sign in to comment.