Skip to content

Commit 2bbf38f

Browse files
Merge remote-tracking branch 'magento-l3/ACP2E-1653' into L3-PR-2023-09-06
2 parents 827073a + 5ad6101 commit 2bbf38f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

dev/tests/api-functional/framework/Magento/TestFramework/Bootstrap/WebapiDocBlock.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
namespace Magento\TestFramework\Bootstrap;
88

99
use Magento\TestFramework\Annotation\ApiConfigFixture;
10+
use Magento\TestFramework\Annotation\AppArea;
1011
use Magento\TestFramework\Annotation\ConfigFixture;
1112
use Magento\TestFramework\Event\Transaction;
1213

@@ -28,7 +29,7 @@ protected function _getSubscribers(\Magento\TestFramework\Application $applicati
2829
{
2930
$subscribers = parent::_getSubscribers($application);
3031
foreach ($subscribers as $key => $subscriber) {
31-
if (get_class($subscriber) === ConfigFixture::class || get_class($subscriber) === Transaction::class) {
32+
if (in_array(get_class($subscriber), [ConfigFixture::class, Transaction::class, AppArea::class])) {
3233
unset($subscribers[$key]);
3334
}
3435
}
@@ -41,6 +42,7 @@ protected function _getSubscribers(\Magento\TestFramework\Application $applicati
4142
)
4243
);
4344
$subscribers[] = new ApiConfigFixture();
45+
$subscribers[] = new AppArea($application);
4446

4547
return $subscribers;
4648
}

dev/tests/integration/testsuite/Magento/Config/App/Config/Type/SystemTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,10 @@ public function testEnvGetValueStoreScope()
7373
$this->system->get('stores/default/abc/qrs/xyz')
7474
);
7575
}
76+
77+
protected function tearDown(): void
78+
{
79+
unset($_ENV['CONFIG__STORES__DEFAULT__ABC__QRS__XYZ']);
80+
parent::tearDown();
81+
}
7682
}

0 commit comments

Comments
 (0)