`$variant->getId()` is not part of the interface and phpspec doesn't let you mock it otherwise.