Easy and Quick Responsive Discover '; public function setUp() { parent::setUp(); $this->objectManager = GeneralUtility::makeInstance(ObjectManager::class); } /** * @test */ public function htmlIsReturnedForMjml() { $expectedHtml = '
Easy and Quick
Responsive

Discover

'; $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['mjml'] = serialize([ 'nodeBinaryPath' => 'node', 'mjmlBinaryPath' => 'node_modules/.bin/', 'mjmlBinary' => 'mjml', 'mjmlParams' => '-s -m', ]); $subject = $this->objectManager->get(Command::class); $html = $subject->getHtmlFromMjml(static::EXAMPLE_MJML_TEMPLATE); $this->assertSame( $expectedHtml, $html, 'Command renderer did not return expected HTML.' ); } }