Remove code related to template themes
[MAILPOET-6335]
This commit is contained in:
committed by
Aschepikov
parent
1e1bec4ce0
commit
ebe7151269
@@ -33,13 +33,7 @@ class Template_Preview_Test extends \MailPoetTest {
|
||||
* @return void
|
||||
*/
|
||||
public function testItCanGetThemePreviewCss(): void {
|
||||
$template_id = 'mailpoet/mailpoet//simple-light';
|
||||
$result = $this->template_preview->get_email_theme_preview_css(
|
||||
array(
|
||||
'id' => $template_id,
|
||||
'wp_id' => null,
|
||||
)
|
||||
);
|
||||
$result = $this->template_preview->get_email_theme_preview_css();
|
||||
|
||||
verify( $result )->stringContainsString( 'Styles for the email editor.' );
|
||||
verify( $result )->stringContainsString( 'is-layout-email-flex' );
|
||||
|
@@ -45,21 +45,6 @@ class Templates_Test extends \MailPoetTest {
|
||||
verify( $template->description )->equals( 'A general template for emails.' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Test is can fetch template theme
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testItCanFetchTemplateTheme(): void {
|
||||
$template_id = 'mailpoet/mailpoet//simple-light';
|
||||
$theme = $this->templates->get_block_template_theme( $template_id );
|
||||
|
||||
verify( $theme )->arrayCount( 2 );
|
||||
verify( $theme['styles'] )->isArray();
|
||||
verify( $theme['styles']['spacing'] )->isArray();
|
||||
verify( $theme['styles']['spacing']['blockGap'] )->equals( '10px' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Test it can add block templates
|
||||
*
|
||||
|
Reference in New Issue
Block a user