From 31f6a6600e2a564df6bd3bd41a4b6083af1313ca Mon Sep 17 00:00:00 2001 From: Simon Schaufelberger Date: Sat, 2 Oct 2021 10:17:59 +0200 Subject: [PATCH] [TASK] Add PhpStorm meta file (#312) Add PhpStorm meta file for autocomplete of `GeneralUtility::makeInstance`, `getAccessibleMock` and `getAccessibleMockForAbstractClass` in unit tests --- .phpstorm.meta.php | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .phpstorm.meta.php diff --git a/.phpstorm.meta.php b/.phpstorm.meta.php new file mode 100644 index 0000000..c87f4dc --- /dev/null +++ b/.phpstorm.meta.php @@ -0,0 +1,36 @@ + '@|\PHPUnit\Framework\MockObject\MockObject|\TYPO3\TestingFramework\Core\AccessibleObjectInterface', + ]) + ); + override( + \TYPO3\TestingFramework\Core\BaseTestCase::getAccessibleMockForAbstractClass(0), + map([ + '' => '@|\PHPUnit\Framework\MockObject\MockObject|\TYPO3\TestingFramework\Core\AccessibleObjectInterface', + ]) + ); + + // Nimut testing framework + // The accesible mock will be of type "self" as well as "MockObject" and "AccessibleMockObjectInterface" + override( + \Nimut\TestingFramework\TestCase\AbstractTestCase::getAccessibleMock(0), + map([ + '' => '@|\PHPUnit\Framework\MockObject\MockObject|\Nimut\TestingFramework\MockObject\AccessibleMockObjectInterface', + ]) + ); + override( + \Nimut\TestingFramework\TestCase\AbstractTestCase::getAccessibleMockForAbstractClass(0), + map([ + '' => '@|\PHPUnit\Framework\MockObject\MockObject|\Nimut\TestingFramework\MockObject\AccessibleMockObjectInterface', + ]) + ); +}