Files
piratepoet/tests/unit/Newsletter/Renderer/Blocks/DividerTest.php
Jan Jakeš 1b5b9d89ff Autofix namespace declaration spacing
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00

37 lines
1022 B
PHP

<?php
namespace MailPoet\Newsletter\Renderer\Blocks;
class DividerTest extends \MailPoetUnitTest {
private $block = [
'type' => 'divider',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'solid',
'borderWidth' => '2px',
'borderColor' => '#ffffff',
],
],
];
function testItRendersCorrectly() {
$output = Divider::render($this->block);
$expected_result = '
<tr>
<td class="mailpoet_divider" valign="top" style="padding: 13px 20px 13px 20px;">
<table width="100%" border="0" cellpadding="0" cellspacing="0"
style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;">
<tr>
<td class="mailpoet_divider-cell" style="border-top-width: 2px;border-top-style: solid;border-top-color: #ffffff;">
</td>
</tr>
</table>
</td>
</tr>';
expect($output)->equals($expected_result);
}
}