service = app('LaborApplyService'); $this->data['laborApplies'] = factory(LaborApply::class, $this->amount) ->create(); } public function testReturned() { $this->assertTrue(true); } function tearDown(): void { LaborApply::query() ->whereIn('id',data_get($this->data['laborApplies'],'*.id')??[]) ->delete(); parent::tearDown(); } public function test_01() { $this->data['laborApplies'] = factory(LaborApply::class)->times(20)->create(); $this->service->allocationLaborToLaborCompany(); } }