Get rid of duplicate CSS for template preview

We can reuse the same CSS we pass to editor
[MAILPOET-6249]
This commit is contained in:
Rostislav Wolny
2024-10-22 14:56:49 +02:00
committed by Jan Lysý
parent b6d75410cf
commit 324fedecbf
3 changed files with 10 additions and 25 deletions

View File

@@ -109,6 +109,7 @@ abstract class MailPoetTest extends \Codeception\TestCase\Test { // phpcs:ignore
$container->set(TemplatePreview::class, function ($container) {
return new TemplatePreview(
$container->get(ThemeController::class),
$container->get(SettingsController::class),
$container->get(Templates::class),
);
});