Skip to content

Commit ef4f9ea

Browse files
MFTF-33305: Clearing AspectMock mocking before each test
1 parent 888d7cd commit ef4f9ea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dev/tests/unit/Util/MagentoTestCase.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ public static function setUpBeforeClass(): void
1919
if (!self::fileExists(DOCS_OUTPUT_DIR)) {
2020
mkdir(DOCS_OUTPUT_DIR, 0755, true);
2121
}
22+
// Should be used to clean AspectMock mocking before using PHPUnit mocking and Reflection.
23+
AspectMock::clean();
24+
parent::setUpBeforeClass();
2225
parent::setUpBeforeClass();
2326
}
2427

0 commit comments

Comments
 (0)