Files
watchstate/tests/Mappers/Import/DirectMapperTest.php
2023-11-11 14:08:05 +03:00

22 lines
590 B
PHP

<?php
declare(strict_types=1);
namespace Tests\Mappers\Import;
use App\Libs\Entity\StateEntity;
use App\Libs\Mappers\Import\DirectMapper;
use App\Libs\Mappers\ImportInterface;
use Symfony\Component\Cache\Adapter\NullAdapter;
use Symfony\Component\Cache\Psr16Cache;
class DirectMapperTest extends AbstractTestsMapper
{
protected function setupMapper(): ImportInterface
{
$mapper = new DirectMapper($this->logger, $this->db, cache: new Psr16Cache(new NullAdapter()));
$mapper->setOptions(options: ['class' => new StateEntity([])]);
return $mapper;
}
}