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
27 lines
610 B
<?php
|
|
|
|
namespace Tests\Feature;
|
|
|
|
use App\Exports\ProductExport;
|
|
use App\Imports\ProductSpecImport;
|
|
use App\Jobs\ExportProductToExcel;
|
|
use Illuminate\Support\Facades\Storage;
|
|
use Maatwebsite\Excel\Facades\Excel;
|
|
use PhpOffice\PhpSpreadsheet\Shared\Date;
|
|
use Tests\TestCase;
|
|
|
|
class ExampleTest extends TestCase
|
|
{
|
|
private string $extract_path = 'G:\WEB\vhosts\hainan.com\storage\app\excel/extract/2_import';
|
|
private int $supplier_id = 2;
|
|
|
|
/**
|
|
* A basic test example.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function test_example()
|
|
{
|
|
ExportProductToExcel::dispatch($this->supplier_id);
|
|
}
|
|
}
|