configurable csv/xlsx export templates (#5531)
This commit is contained in:
30
tests/Mocks/Export/CsvRendererFactoryMock.php
Normal file
30
tests/Mocks/Export/CsvRendererFactoryMock.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Kimai time-tracking app.
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace App\Tests\Mocks\Export;
|
||||
|
||||
use App\Export\Renderer\CsvRendererFactory;
|
||||
use App\Tests\Mocks\AbstractMockFactory;
|
||||
use Psr\EventDispatcher\EventDispatcherInterface;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Symfony\Bundle\SecurityBundle\Security;
|
||||
use Symfony\Contracts\Translation\TranslatorInterface;
|
||||
|
||||
class CsvRendererFactoryMock extends AbstractMockFactory
|
||||
{
|
||||
public function create(): CsvRendererFactory
|
||||
{
|
||||
return new CsvRendererFactory(
|
||||
$this->createMock(EventDispatcherInterface::class),
|
||||
$this->createMock(Security::class),
|
||||
$this->createMock(TranslatorInterface::class),
|
||||
$this->createMock(LoggerInterface::class),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user