- Removes debug leftovers
This commit is contained in:
@ -37,7 +37,6 @@ class Button {
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>';
|
</tr>';
|
||||||
//!d($template);exit;
|
|
||||||
return $template;
|
return $template;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -132,11 +132,9 @@ class NewsletterRendererCest {
|
|||||||
expect($DOM('tr > td > img', 0)->attr('width'))->equals(280);
|
expect($DOM('tr > td > img', 0)->attr('width'))->equals(280);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function itRendersText() {
|
function itRendersText() {
|
||||||
$template = $this->newsletterData['content']['blocks'][0]['blocks'][0]['blocks'][2];
|
$template = $this->newsletterData['content']['blocks'][0]['blocks'][0]['blocks'][2];
|
||||||
$DOM = $this->queryDOM->parseStr(Text::render($template));
|
$DOM = $this->queryDOM->parseStr(Text::render($template));
|
||||||
//!d($DOM->__toString());exit;
|
|
||||||
// blockquotes and paragraphs should be converted to spans and placed inside a table
|
// blockquotes and paragraphs should be converted to spans and placed inside a table
|
||||||
expect(
|
expect(
|
||||||
!empty($DOM('tr > td > table > tr > td.mailpoet_paragraph', 0)->html())
|
!empty($DOM('tr > td > table > tr > td.mailpoet_paragraph', 0)->html())
|
||||||
@ -174,7 +172,6 @@ class NewsletterRendererCest {
|
|||||||
))->equals(1);
|
))->equals(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function itRendersSpacer() {
|
function itRendersSpacer() {
|
||||||
$template = $this->newsletterData['content']['blocks'][0]['blocks'][0]['blocks'][4];
|
$template = $this->newsletterData['content']['blocks'][0]['blocks'][0]['blocks'][4];
|
||||||
$DOM = $this->queryDOM->parseStr(Spacer::render($template));
|
$DOM = $this->queryDOM->parseStr(Spacer::render($template));
|
||||||
@ -249,4 +246,4 @@ class NewsletterRendererCest {
|
|||||||
expect(preg_match('/mailpoet_template.*?important/s', $template))
|
expect(preg_match('/mailpoet_template.*?important/s', $template))
|
||||||
->equals(0);
|
->equals(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user