Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Add tests for Invoice::isDeleted() #1558

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

localheinz
Copy link
Contributor

This pull request

  • adds tests

Somewhat related to #1556.

$stripeInvoice = new StripeInvoice();

$stripeInvoice->customer = $customerId;
$stripeInvoice->status = StripeInvoice::STATUS_DELETED;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that Stripe\Invoice::STATUS_DELETED has been deprecated since stripe/stripe-php:10.12.0 and has been removed with stripe/stripe-php:^12.0.0.


$invoice = new Invoice($user, $stripeInvoice);

$this->assertFalse($invoice->isDeleted());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if anyone uses this method, but in the light of #1556, it either

  • should always return false
  • be deprecated and eventually removed

@localheinz localheinz changed the title Fix: Add tests Fix: Add tests for isDeleted() Aug 30, 2023
@localheinz localheinz changed the title Fix: Add tests for isDeleted() Fix: Add tests for Invoice::isDeleted() Aug 30, 2023
@taylorotwell taylorotwell merged commit dc42f87 into laravel:14.x Aug 30, 2023
@localheinz localheinz deleted the fix/deleted branch August 30, 2023 19:27
@driesvints
Copy link
Member

Hi there @localheinz. I'm going to revert this one as isDeleted has already been removed on master in preparation for Cashier Stripe v15: #1529

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants