diff --git a/tests/Unit/InvoiceTest.php b/tests/Unit/InvoiceTest.php index 98d56205..a40f747d 100644 --- a/tests/Unit/InvoiceTest.php +++ b/tests/Unit/InvoiceTest.php @@ -307,66 +307,4 @@ public function test_it_can_determine_if_reverse_charge_applies() $this->assertTrue($invoice->reverseChargeApplies()); } - - public function test_it_can_determine_if_is_deleted(): void - { - $customerId = 'foo'; - - $stripeInvoice = new StripeInvoice(); - - $stripeInvoice->customer = $customerId; - $stripeInvoice->status = StripeInvoice::STATUS_DELETED; - - $user = new User(); - - $user->stripe_id = $customerId; - - $invoice = new Invoice($user, $stripeInvoice); - - $this->assertTrue($invoice->isDeleted()); - } - - /** - * @dataProvider provideInvoiceStatusNotDeleted - */ - public function test_it_can_determine_if_is_not_deleted(string $invoiceStatus): void - { - $customerId = 'foo'; - - $stripeInvoice = new StripeInvoice(); - - $stripeInvoice->customer = $customerId; - $stripeInvoice->status = $invoiceStatus; - - $user = new User(); - - $user->stripe_id = $customerId; - - $invoice = new Invoice($user, $stripeInvoice); - - $this->assertFalse($invoice->isDeleted()); - } - - /** - * @return array - */ - public function provideInvoiceStatusNotDeleted(): array - { - $invoiceStatuses = [ - StripeInvoice::STATUS_DRAFT, - StripeInvoice::STATUS_OPEN, - StripeInvoice::STATUS_PAID, - StripeInvoice::STATUS_UNCOLLECTIBLE, - StripeInvoice::STATUS_VOID, - ]; - - return array_combine( - $invoiceStatuses, - array_map(static function (string $invoiceStatus): array { - return [ - $invoiceStatus, - ]; - }, $invoiceStatuses) - ); - } }