mjml-typo3/Tests/Unit/AbstractUnitTestCase.php
Daniel Siepmann eba401aa9f
TASK: Add first test
Add all dependencies to run tests.
Configure tests as composer task.
Add tests to travis.
Adjust code to make him exchangeable and testable.
2017-12-14 23:06:55 +01:00

22 lines
571 B
PHP

<?php
namespace Saccas\Mjml\Tests\Unit;
use TYPO3\CMS\Core\Cache\Backend\NullBackend;
use TYPO3\CMS\Core\Cache\CacheManager;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
abstract class AbstractUnitTestCase extends UnitTestCase
{
public function setUp()
{
parent::setUp();
GeneralUtility::makeInstance(CacheManager::class)
->setCacheConfigurations([
'extbase_object' => [
'backend' => NullBackend::class,
],
]);
}
}