Code Duplication    Length = 10-12 lines in 2 locations

tests/Integration/API/PromotionsTest.php 2 locations

@@ 146-157 (lines=12) @@
143
    /**
144
     * @depends testGetPromotionPeriods
145
     */
146
    public function testSetPromotionRewards()
147
    {
148
        $response = static::$xsollaClient->SetPromotionRewards([
149
            'promotion_id' => static::$promotionId,
150
            'request' => [
151
                'purchase' => [
152
                    'discount_percent' => 10,
153
                ],
154
            ],
155
        ]);
156
        static::assertSame(204, $response->getStatusCode());
157
    }
158
159
    /**
160
     * @depends testSetPromotionRewards
@@ 215-224 (lines=10) @@
212
    /**
213
     * @depends testCreateCouponPromotion
214
     */
215
    public function testUpdatePromotionCampaigns()
216
    {
217
        $response = static::$xsollaClient->UpdatePromotionCampaigns([
218
            'promotion_id' => static::$promotionId,
219
            'request' => [
220
                'campaigns' => [static::$couponPromotionId],
221
            ],
222
        ]);
223
        static::assertSame(204, $response->getStatusCode());
224
    }
225
226
    /**
227
     * @depends testUpdatePromotionCampaigns