I have created 2 new product attributes that are mandatory (required), "vendor_id" and "delivery_country".
After creating this two attributes the integration tests are failing.
I executed the testes just for one module to see what is happening:
When running the integrations tests for this module it gives me fatal error:
Magento\Eav\Model\Entity\Attribute\Exception: The value of attribute "vendor_id" must be set in /vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:111
I have noticed that this module is using this two files for products:
I added the new attributes in the above files, after executing tests again they are passing.
The problem is that there are many files that are creating products for integration tests and I don't see as a solution to modify this files.
Is there a way to set this new attributes on all the products that are created for integration tests without modifying all the fixture files.