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