In order to be able to properly test T204031 before just running it in production we need WikibaseQualityConstraints to be properly setup and configured in beta and test (although without a SPARQL query service as noted in T204031#4742336 as I don't have one for beta or test).
Look at the maintenance directory in WikibaseQualityConstraints!?
 The extension is enabled
 It is properly configured
 Properties are correctly configured