ProductReviewEntity example



    public function testLoadReview(): void
    {
        $ids = new IdsCollection();

        $this->systemConfigServiceMock->method('get')->with('core.listing.showReview')->willReturn(true);

        $requestBag = new RequestDataBag(['test' => 'test']);
        $request = new Request(['test' => 'test']);

        $productReview = new ProductReviewEntity();
        $productReview->setUniqueIdentifier($ids->get('productReview'));
        $reviewResult = new ReviewLoaderResult(
            'review',
            1,
            new ProductReviewCollection([$productReview]),
            null,
            new Criteria(),
            Context::createDefaultContext()
        );
        $this->productReviewLoaderMock->method('load')->with(
            $request,
            
Home | Imprint | This part of the site doesn't use cookies.