/** * @test */ public function findByIdWorks() { $this->assertEquals($this->photo, $this->repository->findById(new PhotoId($this->photo->id()))); }