NewsletterRecipientAdminSearchIndexer example


class NewsletterRecipientAdminSearchIndexerTest extends TestCase
{
    private NewsletterRecipientAdminSearchIndexer $searchIndexer;

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

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

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