Skip to content

Commit d2c1ae0

Browse files
committed
Fix tests
1 parent ffba116 commit d2c1ae0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/Action/Api/WebhookEvent/PaymentIntentCanceledActionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function shouldConsumeAWebhookEvent()
7575
}))
7676
;
7777

78-
$action = new CheckoutSessionCompletedAction();
78+
$action = new PaymentIntentCanceledAction();
7979
$action->setGateway($gatewayMock);
8080
$eventWrapper = new EventWrapper('', $event);
8181
$webhookEvent = new WebhookEvent($eventWrapper);

tests/Action/StatusActionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function shouldMarkCanceledIfIsAPaymentIntentObjectAndStatusIsCanceled()
155155
/**
156156
* @test
157157
*/
158-
public function shouldMarkAsNewIfIsAPaymentIntentObjectAndStatusRequiresPaymentMethod()
158+
public function shouldMarkAsCanceledIfIsAPaymentIntentObjectAndStatusRequiresPaymentMethod()
159159
{
160160
$action = new StatusAction();
161161

@@ -167,7 +167,7 @@ public function shouldMarkAsNewIfIsAPaymentIntentObjectAndStatusRequiresPaymentM
167167
$status = new GetHumanStatus($model);
168168
$action->execute($status);
169169

170-
$this->assertTrue($status->isNew());
170+
$this->assertTrue($status->isCanceled());
171171
}
172172

173173
/**

0 commit comments

Comments
 (0)