Skip to content

Commit 63c4e46

Browse files
authored
Remove manual promotion code test (#1931)
* removed manually maintained promotion code test (will be convered by generated example tests) * regenerated GeneratedExamplesTest
1 parent a2edf2b commit 63c4e46

File tree

3 files changed

+12
-149
lines changed

3 files changed

+12
-149
lines changed

tests/Stripe/GeneratedExamplesTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2415,6 +2415,18 @@ public function testPromotionCodesGet2()
24152415
}
24162416

24172417
public function testPromotionCodesPost()
2418+
{
2419+
$this->expectsRequest('post', '/v1/promotion_codes');
2420+
$result = $this->client->promotionCodes->create([
2421+
'promotion' => [
2422+
'type' => 'coupon',
2423+
'coupon' => 'Z4OV52SU',
2424+
],
2425+
]);
2426+
self::assertInstanceOf(PromotionCode::class, $result);
2427+
}
2428+
2429+
public function testPromotionCodesPost2()
24182430
{
24192431
$this->expectsRequest(
24202432
'post',

tests/Stripe/PromotionCodeTest.php

Lines changed: 0 additions & 73 deletions
This file was deleted.

tests/Stripe/Service/PromotionCodeServiceTest.php

Lines changed: 0 additions & 76 deletions
This file was deleted.

0 commit comments

Comments
 (0)