use custom fonts in mpdf via twig template (#3509)
This commit is contained in:
22
tests/Mocks/FileHelperFactory.php
Normal file
22
tests/Mocks/FileHelperFactory.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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;
|
||||
|
||||
use App\Utils\FileHelper;
|
||||
|
||||
class FileHelperFactory extends AbstractMockFactory
|
||||
{
|
||||
public function create(): FileHelper
|
||||
{
|
||||
$data = realpath(__DIR__ . '/../../var/data/');
|
||||
|
||||
return new FileHelper($data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user