CategoryAdminSearchIndexer example


class CategoryAdminSearchIndexerTest extends TestCase
{
    private CategoryAdminSearchIndexer $searchIndexer;

    protected function setUp(): void
    {
        $this->searchIndexer = new CategoryAdminSearchIndexer(
            $this->createMock(Connection::class),
            $this->createMock(IteratorFactory::class),
            $this->createMock(EntityRepository::class),
            100
        );
    }

    public function testGetEntity(): void
    {
        static::assertSame(CategoryDefinition::ENTITY_NAME, $this->searchIndexer->getEntity());
    }

    
Home | Imprint | This part of the site doesn't use cookies.