mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for tests
This commit is contained in:
parent
1ebcec885b
commit
1e7f750a1b
@ -118,6 +118,13 @@ class ProductSalesReportTest extends TestCase
|
|||||||
'is_income_billed' => true,
|
'is_income_billed' => true,
|
||||||
'include_tax' => false,
|
'include_tax' => false,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
$this->client = Client::factory()->create([
|
||||||
|
'user_id' => $this->user->id,
|
||||||
|
'company_id' => $this->company->id,
|
||||||
|
'is_deleted' => 0,
|
||||||
|
]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testProductSalesInstance()
|
public function testProductSalesInstance()
|
||||||
@ -128,29 +135,24 @@ class ProductSalesReportTest extends TestCase
|
|||||||
|
|
||||||
$this->assertInstanceOf(ProductSalesExport::class, $pl);
|
$this->assertInstanceOf(ProductSalesExport::class, $pl);
|
||||||
|
|
||||||
// $this->account->delete();
|
$this->account->delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testSimpleReport()
|
public function testSimpleReport()
|
||||||
{
|
{
|
||||||
$this->buildData();
|
$this->buildData();
|
||||||
|
|
||||||
$client = Client::factory()->create([
|
|
||||||
'user_id' => $this->user->id,
|
|
||||||
'company_id' => $this->company->id,
|
|
||||||
'is_deleted' => 0,
|
|
||||||
]);
|
|
||||||
|
|
||||||
$this->payload = [
|
$this->payload = [
|
||||||
'start_date' => '2000-01-01',
|
'start_date' => '2000-01-01',
|
||||||
'end_date' => '2030-01-11',
|
'end_date' => '2030-01-11',
|
||||||
'date_range' => 'custom',
|
'date_range' => 'custom',
|
||||||
'client_id' => $client->id,
|
'client_id' => $this->client->id,
|
||||||
'report_keys' => []
|
'report_keys' => []
|
||||||
];
|
];
|
||||||
|
|
||||||
$i = Invoice::factory()->create([
|
$i = Invoice::factory()->create([
|
||||||
'client_id' => $client->id,
|
'client_id' => $this->client->id,
|
||||||
'user_id' => $this->user->id,
|
'user_id' => $this->user->id,
|
||||||
'company_id' => $this->company->id,
|
'company_id' => $this->company->id,
|
||||||
'amount' => 0,
|
'amount' => 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user