If this is for unit tests only, perhaps its public name should be _setEnabled.