From 90b3b25849333cc7d3e62b0a6c319f2306fa2931 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 10 Mar 2021 09:23:13 +1100 Subject: [PATCH] Fixes for tests - changed listResponse to itemResponse --- .../Controllers/BillingSubscriptionController.php | 2 +- tests/Feature/BillingSubscriptionApiTest.php | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) 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); } }