[FEATURE] Add backend for loading translations via ajax
This commit is contained in:
30
Tests/Unit/Controller/TranslationControllerTest.php
Normal file
30
Tests/Unit/Controller/TranslationControllerTest.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
namespace Cjel\TemplatesAide\Tests\Unit\Controller;
|
||||
|
||||
/**
|
||||
* Test case.
|
||||
*
|
||||
* @author Philipp Dieter <philippdieter@attic-media.net>
|
||||
*/
|
||||
class TranslationControllerTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
|
||||
{
|
||||
/**
|
||||
* @var \Cjel\TemplatesAide\Controller\TranslationController
|
||||
*/
|
||||
protected $subject = null;
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->subject = $this->getMockBuilder(\Cjel\TemplatesAide\Controller\TranslationController::class)
|
||||
->setMethods(['redirect', 'forward', 'addFlashMessage'])
|
||||
->disableOriginalConstructor()
|
||||
->getMock();
|
||||
}
|
||||
|
||||
protected function tearDown()
|
||||
{
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
}
|
||||
34
Tests/Unit/Domain/Model/TranslationTest.php
Normal file
34
Tests/Unit/Domain/Model/TranslationTest.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
namespace Cjel\TemplatesAide\Tests\Unit\Domain\Model;
|
||||
|
||||
/**
|
||||
* Test case.
|
||||
*
|
||||
* @author Philipp Dieter <philippdieter@attic-media.net>
|
||||
*/
|
||||
class TranslationTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
|
||||
{
|
||||
/**
|
||||
* @var \Cjel\TemplatesAide\Domain\Model\Translation
|
||||
*/
|
||||
protected $subject = null;
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->subject = new \Cjel\TemplatesAide\Domain\Model\Translation();
|
||||
}
|
||||
|
||||
protected function tearDown()
|
||||
{
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
public function dummyTestToNotLeaveThisFileEmpty()
|
||||
{
|
||||
self::markTestIncomplete();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user