public function MimeMailFormatHelperTest::testUrl in Mime Mail 8
Tests helper function for formatting URLs.
@dataProvider providerTestUrl @covers ::mimeMailUrl
Parameters
string $url: URL to test.
bool $absolute: Whether the URL is absolute.
string $expected: URL after formatting.
File
- tests/
src/ Kernel/ MimeMailFormatHelperTest.php, line 282
Class
- MimeMailFormatHelperTest
- Tests that Mime Mail utility functions work properly.
Namespace
Drupal\Tests\mimemail\KernelCode
public function testUrl($url, $absolute, $expected) {
$result = MimeMailFormatHelper::mimeMailUrl($url, $absolute);
$this
->assertSame($expected, $result);
}