Skip to content

Commit f9cd5fa

Browse files
committed
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.
1 parent 01ac66b commit f9cd5fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dev/tests/integration/testsuite/Magento/Eav/Setup/EavSetupTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
namespace Magento\Eav\Setup;
88

9+
use Magento\TestFramework\Fixture\AppIsolation;
10+
911
/**
1012
* Test class for Magento\Eav\Setup\EavSetup.
1113
* @magentoDbIsolation enabled
@@ -66,6 +68,7 @@ public static function addAttributeDataProvider()
6668
*
6769
* @dataProvider addAttributeThrowExceptionDataProvider
6870
*/
71+
#[AppIsolation(true)]
6972
public function testAddAttributeThrowException($attributeCode)
7073
{
7174
$this->expectException(\Magento\Framework\Exception\LocalizedException::class);
@@ -98,6 +101,7 @@ public static function addAttributeThrowExceptionDataProvider()
98101
*
99102
* @dataProvider addInvalidAttributeThrowExceptionDataProvider
100103
*/
104+
#[AppIsolation(true)]
101105
public function testAddInvalidAttributeThrowException($attributeCode)
102106
{
103107
$this->expectException(\Magento\Framework\Exception\LocalizedException::class);

0 commit comments

Comments
 (0)