From b3c98cde35ae927b05f34b6dc3e81615ee3de0c1 Mon Sep 17 00:00:00 2001 From: stollr Date: Tue, 11 Feb 2025 09:33:04 +0100 Subject: [PATCH] Added app isolation attribute to tests in EavSetupTest because the affect global state (adding error messages to the `Magento\Eav\Model\Validator\Attribute\Code` service) which will affect further tests that try to add eav attributes. This change fixes #39616. --- .../integration/testsuite/Magento/Eav/Setup/EavSetupTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dev/tests/integration/testsuite/Magento/Eav/Setup/EavSetupTest.php b/dev/tests/integration/testsuite/Magento/Eav/Setup/EavSetupTest.php index 17f9f481be78e..ea7f90176efb7 100644 --- a/dev/tests/integration/testsuite/Magento/Eav/Setup/EavSetupTest.php +++ b/dev/tests/integration/testsuite/Magento/Eav/Setup/EavSetupTest.php @@ -6,6 +6,8 @@ namespace Magento\Eav\Setup; +use Magento\TestFramework\Fixture\AppIsolation; + /** * Test class for Magento\Eav\Setup\EavSetup. * @magentoDbIsolation enabled @@ -66,6 +68,7 @@ public static function addAttributeDataProvider() * * @dataProvider addAttributeThrowExceptionDataProvider */ + #[AppIsolation(true)] public function testAddAttributeThrowException($attributeCode) { $this->expectException(\Magento\Framework\Exception\LocalizedException::class); @@ -98,6 +101,7 @@ public static function addAttributeThrowExceptionDataProvider() * * @dataProvider addInvalidAttributeThrowExceptionDataProvider */ + #[AppIsolation(true)] public function testAddInvalidAttributeThrowException($attributeCode) { $this->expectException(\Magento\Framework\Exception\LocalizedException::class);