File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
dev/tests/api-functional/framework/Magento/TestFramework/Bootstrap Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -28,19 +28,18 @@ protected function _getSubscribers(\Magento\TestFramework\Application $applicati
28
28
{
29
29
$ subscribers = parent ::_getSubscribers ($ application );
30
30
foreach ($ subscribers as $ key => $ subscriber ) {
31
- if (get_class ($ subscriber ) == ConfigFixture::class) {
31
+ if (get_class ($ subscriber ) === ConfigFixture::class || get_class ( $ subscriber ) === Transaction ::class) {
32
32
unset($ subscribers [$ key ]);
33
- } elseif (get_class ($ subscriber ) == Transaction::class) {
34
- $ subscribers [$ key ] = new \Magento \TestFramework \Event \Transaction (
35
- new \Magento \TestFramework \EventManager (
36
- [
37
- new \Magento \TestFramework \Annotation \DbIsolation (),
38
- new \Magento \TestFramework \Annotation \ApiDataFixture (),
39
- ]
40
- )
41
- );
42
33
}
43
34
}
35
+ $ subscribers [] = new \Magento \TestFramework \Event \Transaction (
36
+ new \Magento \TestFramework \EventManager (
37
+ [
38
+ new \Magento \TestFramework \Annotation \DbIsolation (),
39
+ new \Magento \TestFramework \Annotation \ApiDataFixture (),
40
+ ]
41
+ )
42
+ );
44
43
$ subscribers [] = new ApiConfigFixture ();
45
44
46
45
return $ subscribers ;
You can’t perform that action at this time.
0 commit comments