Skip to content

Commit 73b6a91

Browse files
MFTF-33303: Clearing AspectMock mocking before each test
1 parent 6b12ed0 commit 73b6a91

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dev/tests/unit/Util/MagentoTestCase.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ 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();
2224
parent::setUpBeforeClass();
2325
}
2426

0 commit comments

Comments
 (0)