Skip to content
Snippets Groups Projects
Commit e391a19f authored by Mingsong's avatar Mingsong Committed by Adam Shepherd
Browse files

Issue #3371042 by Niklan, Mingsong, AdamPS: Drupal 10.1.0 new aggregation...

Issue #3371042 by Niklan, Mingsong, AdamPS: Drupal 10.1.0 new aggregation breaks InlineCssEmailAdjuster (tests only)
parent 72fc7ea2
No related branches found
No related tags found
No related merge requests found
span.day {
font-style: italic;
}
@import url('inline.day.css');
h4.text-small {
font-weight: bold;
}
inline_css_test:
css:
theme:
css/inline.text-small.css: {}
......@@ -60,4 +60,19 @@ class SymfonyMailerKernelTest extends KernelTestBase {
$this->assertTo($to);
}
/**
* Inline CSS adjuster test.
*/
public function testInlineCss() {
$to = 'to@example.com';
// Test an email including the test library.
$this->emailFactory->newTypedEmail('symfony_mailer', 'test', $to)->addLibrary('symfony_mailer_test/inline_css_test')->send();
$this->readMail();
$this->assertNoError();
// The inline CSS from inline.text-small.css should appear.
$this->assertBodyContains('<h4 class="text-small" style="padding-top: 3px; padding-bottom: 3px; text-align: center; background-color: #0678be; color: white; font-size: smaller; font-weight: bold;">');
// The imported CSS from inline.day.css should appear.
$this->assertBodyContains('<span class="day" style="font-style: italic;">');
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment