CI always runs with the default settings, so for testing in the local envioronment, it is not an option to use a modified LocalSettings.php.
Thus if needed, integration tests that require $wgWBRepoSettings['federatedPropertiesEnabled'] = true should do so for the entire class in the setup() method. Mixing test cases in a single class, so that federatedPropertiesEnabled is false for most tests, but true for some others, will eventually lead to confusion and possibly failing CI tests.
To be done
- We need to put Federated Properties tests in a standard directory or namespace, evaluating the discussion that occured on https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Wikibase/+/607169/1/repo/tests/phpunit/includes/Api/SetClaimFederatedPropertiesTest.php
- Standardize how we set the federated properties config in our tests