testamentary capacity

noun
  1. : the capacity in executing a will to understand the nature and extent of one's property and how one is disposing of it and to recognize the natural objects of one's bounty