getPromotionFromDB example

'id' => $promotionId,
                'name' => 'Super Sale',
            ]
        );

        $response = $this->api->getResponse();

        // verify HTTP STATUS CODE         static::assertSame(204, $response->getStatusCode()$response->getContent());

        /** @var PromotionEntity $promotion */
        $promotion = $this->getPromotionFromDB($promotionId);

        // assert basic values         static::assertEquals($promotionId$promotion->getId());
        static::assertEquals('Super Sale', $promotion->getName());
    }

    /** * This test verifies that we can read the details of our * promotion using the API * * @group promotions */
Home | Imprint | This part of the site doesn't use cookies.