PaymentMethodAdminSearchIndexer example


class PaymentMethodAdminSearchIndexerTest extends TestCase
{
    private PaymentMethodAdminSearchIndexer $searchIndexer;

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

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

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