mirror of
https://github.com/saccas/mjml-typo3.git
synced 2024-11-23 13:16:10 +01:00
TASK: Add test for command renderer
This commit is contained in:
parent
eba401aa9f
commit
4794287b2d
3 changed files with 69 additions and 3 deletions
|
@ -6,7 +6,7 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||||
|
|
||||||
class Command implements RendererInterface
|
class Command implements RendererInterface
|
||||||
{
|
{
|
||||||
protected function getHtmlFromMjml($mjml)
|
public function getHtmlFromMjml($mjml)
|
||||||
{
|
{
|
||||||
$configuration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['mjml']);
|
$configuration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['mjml']);
|
||||||
|
|
||||||
|
|
66
Tests/Unit/Domain/Renderer/CommandTest.php
Normal file
66
Tests/Unit/Domain/Renderer/CommandTest.php
Normal file
File diff suppressed because one or more lines are too long
|
@ -16,13 +16,13 @@
|
||||||
|
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="unit-tests">
|
<testsuite name="unit-tests">
|
||||||
<directory>./Tests/Unit/</directory>
|
<directory>./Tests/Unit</directory>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
</testsuites>
|
</testsuites>
|
||||||
|
|
||||||
<filter>
|
<filter>
|
||||||
<whitelist>
|
<whitelist>
|
||||||
<directory suffix=".php">Classes</directory>
|
<directory suffix=".php">./Classes</directory>
|
||||||
</whitelist>
|
</whitelist>
|
||||||
</filter>
|
</filter>
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
|
Loading…
Reference in a new issue