Fixes #13028: provider will not be configured if the main plugin is disabled
Also made plugin initialization and configuration more testable.
Fixes #13028: provider will not be configured if the main plugin is disabled
Also made plugin initialization and configuration more testable.