hasParent
Matches a component whose parent satisfies matcher. A component with no parent never matches.
Return
a matcher whose description names this condition.
Parameters
matcher
applied to the direct parent only; hasAnyAncestor reaches further up.