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