Prepare styles in store for sidebar

[MAILPOET-5638]
This commit is contained in:
Jan Lysý
2024-02-28 19:17:17 +01:00
committed by Jan Lysý
parent 46e5576ddc
commit db8dac03d2
13 changed files with 71 additions and 57 deletions

View File

@ -88,14 +88,16 @@ class RendererTest extends \MailPoetTest {
],
]);
$settingsControllerMock = $this->createMock(SettingsController::class);
$settingsControllerMock->method('getEmailLayoutStyles')->willReturn([
'width' => '123px',
'background' => '#123456',
'padding' => [
'left' => '1px',
'right' => '2px',
'top' => '3px',
'bottom' => '4px',
$settingsControllerMock->method('getEmailStyles')->willReturn([
'layout' => [
'width' => '123px',
'background' => '#123456',
'padding' => [
'left' => '1px',
'right' => '2px',
'top' => '3px',
'bottom' => '4px',
],
],
]);
$settingsControllerMock->method('getTheme')->willReturn($themeJsonMock);