diff --git a/tests/Feature/Export/ProductSalesReportTest.php b/tests/Feature/Export/ProductSalesReportTest.php index 9dc6771f1f5f..7557c53d4543 100644 --- a/tests/Feature/Export/ProductSalesReportTest.php +++ b/tests/Feature/Export/ProductSalesReportTest.php @@ -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(); }