Migrate email editor theme-controller to WP Coding Standard
[MAILPOET-6240]
This commit is contained in:
@@ -24,7 +24,7 @@ class Variables_Postprocessor_Test extends \MailPoetUnitTest {
|
||||
'--wp--preset--spacing--20' => '20px',
|
||||
'--wp--preset--spacing--30' => '30px',
|
||||
];
|
||||
$this->themeControllerMock->method('getVariablesValuesMap')->willReturn($variablesMap);
|
||||
$this->themeControllerMock->method('get_variables_values_map')->willReturn($variablesMap);
|
||||
$html = '<div style="padding:var(--wp--preset--spacing--10);margin:var(--wp--preset--spacing--20)"><p style="color:white;padding-left:var(--wp--preset--spacing--10);">Helloo I have padding var(--wp--preset--spacing--10); </p></div>';
|
||||
$result = $this->postprocessor->postprocess($html);
|
||||
$this->assertEquals('<div style="padding:10px;margin:20px"><p style="color:white;padding-left:10px;">Helloo I have padding var(--wp--preset--spacing--10); </p></div>', $result);
|
||||
|
@@ -16,8 +16,8 @@ class Settings_Controller_Test extends \MailPoetUnitTest {
|
||||
],
|
||||
]);
|
||||
$themeController = $this->createMock(Theme_Controller::class);
|
||||
$themeController->method('getTheme')->willReturn($themeJsonMock);
|
||||
$themeController->method('getLayoutSettings')->willReturn([
|
||||
$themeController->method('get_theme')->willReturn($themeJsonMock);
|
||||
$themeController->method('get_layout_settings')->willReturn([
|
||||
"contentSize" => "660px",
|
||||
"wideSize" => null,
|
||||
]);
|
||||
|
Reference in New Issue
Block a user