Skip to content

Commit 7d3f229

Browse files
committed
Merge remote-tracking branch 'magento-l3/fix_app_area_not_working_api_functional_test' into ACP2E-1653
2 parents a047c76 + 771652c commit 7d3f229

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-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
}

0 commit comments

Comments
 (0)