From 75cf46b77e91f5e25bc2b1e0ebfaf64a77725948 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 13 May 2021 13:57:18 +1000 Subject: [PATCH] tests for exporting data --- tests/Feature/Export/ExportCompanyTest.php | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 tests/Feature/Export/ExportCompanyTest.php diff --git a/tests/Feature/Export/ExportCompanyTest.php b/tests/Feature/Export/ExportCompanyTest.php new file mode 100644 index 0000000000..189b1b47dd --- /dev/null +++ b/tests/Feature/Export/ExportCompanyTest.php @@ -0,0 +1,49 @@ +withoutMiddleware( + ThrottleRequests::class + ); + + // $this->faker = \Faker\Factory::create(); + + $this->makeTestData(); + + $this->withoutExceptionHandling(); + } + + public function testCompanyExport() + { + CompanyExport::dispatchNow($this->company); + } +}