mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 12:04:35 -04:00
Tests for recurring Expenses
This commit is contained in:
parent
2bafe5d1fc
commit
8d15e181c3
@ -139,35 +139,35 @@ class RecurringExpenseApiTest extends TestCase
|
|||||||
$this->assertNotNull($arr['data'][0]['archived_at']);
|
$this->assertNotNull($arr['data'][0]['archived_at']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// public function testRecurringExpenseRestored()
|
public function testRecurringExpenseRestored()
|
||||||
// {
|
{
|
||||||
// $data = [
|
$data = [
|
||||||
// 'ids' => [$this->encodePrimaryKey($this->recurring_expense->id)],
|
'ids' => [$this->encodePrimaryKey($this->recurring_expense->id)],
|
||||||
// ];
|
];
|
||||||
|
|
||||||
// $response = $this->withHeaders([
|
$response = $this->withHeaders([
|
||||||
// 'X-API-SECRET' => config('ninja.api_secret'),
|
'X-API-SECRET' => config('ninja.api_secret'),
|
||||||
// 'X-API-TOKEN' => $this->token,
|
'X-API-TOKEN' => $this->token,
|
||||||
// ])->post('/api/v1/recurring_expenses/bulk?action=restore', $data);
|
])->post('/api/v1/recurring_expenses/bulk?action=restore', $data);
|
||||||
|
|
||||||
// $arr = $response->json();
|
$arr = $response->json();
|
||||||
|
|
||||||
// $this->assertEquals(0, $arr['data'][0]['archived_at']);
|
$this->assertEquals(0, $arr['data'][0]['archived_at']);
|
||||||
// }
|
}
|
||||||
|
|
||||||
// public function testRecurringExpenseDeleted()
|
public function testRecurringExpenseDeleted()
|
||||||
// {
|
{
|
||||||
// $data = [
|
$data = [
|
||||||
// 'ids' => [$this->encodePrimaryKey($this->recurring_expense->id)],
|
'ids' => [$this->encodePrimaryKey($this->recurring_expense->id)],
|
||||||
// ];
|
];
|
||||||
|
|
||||||
// $response = $this->withHeaders([
|
$response = $this->withHeaders([
|
||||||
// 'X-API-SECRET' => config('ninja.api_secret'),
|
'X-API-SECRET' => config('ninja.api_secret'),
|
||||||
// 'X-API-TOKEN' => $this->token,
|
'X-API-TOKEN' => $this->token,
|
||||||
// ])->post('/api/v1/recurring_expenses/bulk?action=delete', $data);
|
])->post('/api/v1/recurring_expenses/bulk?action=delete', $data);
|
||||||
|
|
||||||
// $arr = $response->json();
|
$arr = $response->json();
|
||||||
|
|
||||||
// $this->assertTrue($arr['data'][0]['is_deleted']);
|
$this->assertTrue($arr['data'][0]['is_deleted']);
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user