海南旅游SAAS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
610 B

4 years ago
4 years ago
4 years ago
4 years ago
  1. <?php
  2. namespace Tests\Feature;
  3. use App\Exports\ProductExport;
  4. use App\Imports\ProductSpecImport;
  5. use App\Jobs\ExportProductToExcel;
  6. use Illuminate\Support\Facades\Storage;
  7. use Maatwebsite\Excel\Facades\Excel;
  8. use PhpOffice\PhpSpreadsheet\Shared\Date;
  9. use Tests\TestCase;
  10. class ExampleTest extends TestCase
  11. {
  12. private string $extract_path = 'G:\WEB\vhosts\hainan.com\storage\app\excel/extract/2_import';
  13. private int $supplier_id = 2;
  14. /**
  15. * A basic test example.
  16. *
  17. * @return void
  18. */
  19. public function test_example()
  20. {
  21. ExportProductToExcel::dispatch($this->supplier_id);
  22. }
  23. }