mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for tests - changed listResponse to itemResponse
This commit is contained in:
parent
3c162d92de
commit
90b3b25849
@ -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());
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* Invoice Ninja (https://invoiceninja.com).
|
||||
*
|
||||
* @link https://github.com/invoiceninja/invoiceninja source repository
|
||||
*
|
||||
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
|
||||
*
|
||||
* @license https://opensource.org/licenses/AAL
|
||||
*/
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
@ -13,6 +22,10 @@ use Illuminate\Support\Facades\Session;
|
||||
use Tests\MockAccountData;
|
||||
use Tests\TestCase;
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @covers App\Http\Controllers\BillingSubscriptionController
|
||||
*/
|
||||
class BillingSubscriptionApiTest extends TestCase
|
||||
{
|
||||
use MakesHash;
|
||||
@ -100,7 +113,6 @@ class BillingSubscriptionApiTest extends TestCase
|
||||
*/
|
||||
public function testBillingSubscriptionDeleted()
|
||||
{
|
||||
$this->markTestSkipped();
|
||||
|
||||
$product = Product::factory()->create([
|
||||
'company_id' => $this->company->id,
|
||||
@ -118,6 +130,5 @@ class BillingSubscriptionApiTest extends TestCase
|
||||
->assertStatus(200)
|
||||
->json();
|
||||
|
||||
dd($response);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user