songRepository = app(SongRepository::class); } public function testGetOneByPath(): void { /** @var Song $song */ $song = Song::factory()->create(['path' => 'foo']); self::assertSame($song->id, $this->songRepository->getOneByPath('foo')->id); } }