/** * @test */ public function ensureUniquePhotoIdWorks() { $photoId = new PhotoId($this->photo->id()); $uniquePhotoId = $this->repository->ensureUniquePhotoId($photoId); $this->assertTrue($photoId->id() !== $uniquePhotoId->id()); }