diff --git a/payment_reference/src/Tests/Element/PaymentReferenceWebTest.php b/payment_reference/src/Tests/Element/PaymentReferenceWebTest.php index edb945d..a4ebf6d 100644 --- a/payment_reference/src/Tests/Element/PaymentReferenceWebTest.php +++ b/payment_reference/src/Tests/Element/PaymentReferenceWebTest.php @@ -113,7 +113,7 @@ class PaymentReferenceWebTest extends WebTestBase { $this->clickLink(t('Complete payment')); /** @var \Drupal\payment\Entity\PaymentInterface $payment */ $payment = Payment::loadMultiple()[2]; - $this->assertEqual($payment->getStatus()->getPluginId(), 'payment_success'); + $this->assertEqual($payment->getPaymentStatus()->getPluginId(), 'payment_success'); $this->assertEqual($payment->get('quxfoobar')[0]->get('value')->getValue(), $text_field_value); } diff --git a/payment_test/src/Plugin/Payment/Method/PaymentTestInterruptive.php b/payment_test/src/Plugin/Payment/Method/PaymentTestInterruptive.php index ab6f448..605c4ff 100644 --- a/payment_test/src/Plugin/Payment/Method/PaymentTestInterruptive.php +++ b/payment_test/src/Plugin/Payment/Method/PaymentTestInterruptive.php @@ -73,7 +73,7 @@ class PaymentTestInterruptive extends PaymentMethodBase implements ContainerFact * {@inheritdoc} */ protected function doExecutePayment() { - $this->getPayment()->setStatus($this->paymentStatusManager->createInstance('payment_success')); + $this->getPayment()->setPaymentStatus($this->paymentStatusManager->createInstance('payment_success')); $this->getPayment()->save(); }