mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for tests
This commit is contained in:
parent
a1063f8249
commit
ff20b2caf1
@ -108,6 +108,9 @@ class ProductSalesReportTest extends TestCase
|
||||
'settings' => $settings,
|
||||
]);
|
||||
|
||||
$this->company->settings = $settings;
|
||||
$this->company->save();
|
||||
|
||||
$this->payload = [
|
||||
'start_date' => '2000-01-01',
|
||||
'end_date' => '2030-01-11',
|
||||
@ -125,14 +128,13 @@ class ProductSalesReportTest extends TestCase
|
||||
|
||||
$this->assertInstanceOf(ProductSalesExport::class, $pl);
|
||||
|
||||
$this->account->delete();
|
||||
// $this->account->delete();
|
||||
}
|
||||
|
||||
public function testSimpleReport()
|
||||
{
|
||||
$this->buildData();
|
||||
|
||||
|
||||
$client = Client::factory()->create([
|
||||
'user_id' => $this->user->id,
|
||||
'company_id' => $this->company->id,
|
||||
@ -174,7 +176,6 @@ class ProductSalesReportTest extends TestCase
|
||||
$response = $pl->run();
|
||||
|
||||
$this->assertIsString($response);
|
||||
// nlog($response);
|
||||
|
||||
$this->account->delete();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user