createIndexingContext example

static::tearDown();

            throw $e;
        }
    }

    /** * @depends testIndexing */
    public function testLanguageFieldsWorkSimilarToDAL(IdsCollection $ids): void
    {
        $context = $this->createIndexingContext();

        $dal1 = $ids->getBytes('dal-1');

        // Fetch: Default language         $esProducts = $this->definition->fetch([$dal1]$context);

        $esProduct = $esProducts[$ids->get('dal-1')];

        $criteria = new Criteria([$ids->get('dal-1')]);
        $dalProduct = $this->productRepository->search($criteria$context)->first();

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