class PromotionAdminSearchIndexerTest extends TestCase
{ private PromotionAdminSearchIndexer
$searchIndexer;
protected function setUp(): void
{ $this->searchIndexer =
new PromotionAdminSearchIndexer( $this->
createMock(Connection::
class),
$this->
createMock(IteratorFactory::
class),
$this->
createMock(EntityRepository::
class),
100
);
} public function testGetEntity(): void
{ static::
assertSame(PromotionDefinition::ENTITY_NAME,
$this->searchIndexer->
getEntity());
}