$this->faker->name, 'status' => $status, 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ]; } app(TestRepository::class)->insert($news); $testService = app(TestService::class); $result = $testService->index(); $this->assertNotEmpty($result); } }