service = app('NewOrderCountingRecordService'); // $this->data['newOrderCountingRecords'] // = factory(OrderCountingRecord::class, $this->amount) // ->create(); } public function testReturned() { $this->assertTrue(true); } function tearDown(): void { OrderCountingRecord::query() ->whereIn('id',data_get($this->data['newOrderCountingRecords'],'*.id')??[]) ->delete(); parent::tearDown(); } /** * @test */ public function get_test() { $ownerIds = \App\Owner::query()->pluck('id')->toArray(); $result = $this->service->getOrderCountingRecordsApi('2021-05-01', '2021-06-08', '日', $ownerIds); $this->assertTrue(true); } }