diff --git a/modules/payment/tests/src/Kernel/PaymentMethodStorageTest.php b/modules/payment/tests/src/Kernel/PaymentMethodStorageTest.php index 0b40778..b8b6172 100644 --- a/modules/payment/tests/src/Kernel/PaymentMethodStorageTest.php +++ b/modules/payment/tests/src/Kernel/PaymentMethodStorageTest.php @@ -47,6 +47,15 @@ class PaymentMethodStorageTest extends OrderKernelTestBase { ]; /** + * The future expiration timestamp for the tested payment method. + * + * Thu, 16 Jan 2025. + * + * @var string + */ + protected $futureExpire = '1736985600'; + + /** * {@inheritdoc} */ protected function setUp() { @@ -94,8 +103,7 @@ class PaymentMethodStorageTest extends OrderKernelTestBase { 'type' => 'credit_card', 'payment_gateway' => 'example', 'payment_gateway_mode' => 'test', - // Thu, 16 Jan 2020. - 'expires' => '1579132800', + 'expires' => $this->futureExpire, 'uid' => $this->user->id(), ]); $payment_method_active->save(); @@ -153,7 +161,7 @@ class PaymentMethodStorageTest extends OrderKernelTestBase { $payment_method_fr = PaymentMethod::create([ 'type' => 'credit_card', 'payment_gateway' => 'example', - 'expires' => '1579132800', + 'expires' => $this->futureExpire, 'uid' => $this->user->id(), 'billing_profile' => $profile_fr, ]); @@ -178,7 +186,7 @@ class PaymentMethodStorageTest extends OrderKernelTestBase { $payment_method_us = PaymentMethod::create([ 'type' => 'credit_card', 'payment_gateway' => 'example', - 'expires' => '1579132800', + 'expires' => $this->futureExpire, 'uid' => $this->user->id(), 'billing_profile' => $profile_us, ]);