22 lines
585 B
PHP
22 lines
585 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 MapperAbstract
|
|
{
|
|
protected function setupMapper(): ImportInterface
|
|
{
|
|
$mapper = new DirectMapper($this->logger, $this->db, cache: new Psr16Cache(new NullAdapter()));
|
|
$mapper->setOptions(options: ['class' => new StateEntity([])]);
|
|
return $mapper;
|
|
}
|
|
}
|