Let's say I have a method in my integration test with annotations like this:
/**
* @magentoDataFixture Magento/Store/_files/core_second_third_fixturestore.php
* @magentoConfigFixture secondstore_store some/config/field 1
**/
When I run the test it fails with:
PHP Fatal error: Uncaught exception 'Magento\Framework\Exception\NoSuchEntityException' with message 'Requested store is not found' in /var/www/html/magento2/app/code/Magento/Store/Model/StoreRepository.php:60
I think that this is because config fixtures are loaded before data fixtures in dev/tests/integration/framework/Magento/TestFramework/Bootstrap/DocBlock.php and in this case we need data fixture to create the store.
Is there a way to load config fixtures after data fixtures so that stores would be available?