Skip to content

Commit 82b7d5d

Browse files
committed
ACP2E-782: Introduce an alternative way to define fixtures using PHP8 Attributes
1 parent 9ef97b7 commit 82b7d5d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dev/tests/integration/framework/tests/unit/testsuite/Magento/Test/Annotation/ConfigFixtureTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ function (string $type) {
4545
}
4646
);
4747

48+
$objectManager->method('get')
49+
->willReturnCallback(
50+
function (string $type) {
51+
return $this->createMock($type);
52+
}
53+
);
54+
4855
Bootstrap::setObjectManager($objectManager);
4956

5057
$this->object = $this->createPartialMock(

0 commit comments

Comments
 (0)