Skip to content
Snippets Groups Projects
Unverified Commit ea098444 authored by Eduardo Gusmão's avatar Eduardo Gusmão
Browse files

test 1.0.7

parent 0e63739b
No related branches found
No related tags found
No related merge requests found
......@@ -44,20 +44,4 @@ class FormatTest extends TestCase
'entity' => 'cid:',
], $message->getBody());
}
/**
* @test
*/
public function testMixedAndCustomEmbedders()
{
App::bind('mail-auto-embed.custom', CustomEmbedder::class);
$message = $this->handleBeforeSendPerformedEvent('formats/html5-custom-embeds.html', self::HANDLE_CONFIG);
$this->assertEmailImageTags([
'default' => 'cid:',
'custom embedder' => 'custom:',
'invalid embedder' => 'cid:',
], $message->getBody());
}
}
<?php
namespace Eduardokum\LaravelMailAutoEmbed\Tests\fixtures;
use Eduardokum\LaravelMailAutoEmbed\Embedder\AttachmentEmbedder;
class CustomEmbedder extends AttachmentEmbedder
{
/**
* @param string $url
*/
public function fromUrl($url)
{
return "custom:{$url}";
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment