[IntegrationTests] Tests in EavSetupTest affect global state #39616
Labels
Area: Framework
Component: Framework/TestFramework
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Priority: P2
A defect with this priority could have functionality issues which are not to expectations.
Reported on 2.4.x
Indicates original Magento version for the Issue report.
Reproduced on 2.4.x
The issue has been reproduced on latest 2.4-develop branch
Triage: Dev.Experience
Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
Preconditions and environment
Steps to reproduce
dev/tests/integration/testsuite/Magento/Eav/Setup/EavSetupTest.php
cd dev/tests/integration && ../../../vendor/bin/phpunit --filter EavSetupTest
)Expected result
All tests should be completed successfully.
Actual result
Our simple test fails, although it should not. The following message is outputted:
The reason is that during the previous tests, which tested to add attributes with invalid codes, the
Magento\Eav\Model\Validator\Attribute\Code
added error messages to its internal array, which are never resetted. That's why subsequent tests, which try to add attributes, will fail.Additional information
No response
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: