diff --git a/app/Http/Controllers/BillingSubscriptionController.php b/app/Http/Controllers/BillingSubscriptionController.php index 6c858bd1ed59..199d51005114 100644 --- a/app/Http/Controllers/BillingSubscriptionController.php +++ b/app/Http/Controllers/BillingSubscriptionController.php @@ -405,6 +405,6 @@ class BillingSubscriptionController extends BaseController { $this->billing_subscription_repo->delete($billing_subscription); - return $this->listResponse($billing_subscription->fresh()); + return $this->itemResponse($billing_subscription->fresh()); } } diff --git a/tests/Feature/BillingSubscriptionApiTest.php b/tests/Feature/BillingSubscriptionApiTest.php index c185968ba1e4..cd66f20f063a 100644 --- a/tests/Feature/BillingSubscriptionApiTest.php +++ b/tests/Feature/BillingSubscriptionApiTest.php @@ -1,4 +1,13 @@ markTestSkipped(); $product = Product::factory()->create([ 'company_id' => $this->company->id, @@ -118,6 +130,5 @@ class BillingSubscriptionApiTest extends TestCase ->assertStatus(200) ->json(); - dd($response); } }