‪TYPO3CMS  9.5
RepositoryTest.php
Go to the documentation of this file.
1 <?php
2 declare(strict_types = 1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
21 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
22 
26 class ‪RepositoryTest extends UnitTestCase
27 {
31  protected ‪$repository;
32 
36  protected ‪$mockObjectManager;
37 
41  protected ‪$mockQueryFactory;
42 
46  protected ‪$mockBackend;
47 
51  protected ‪$mockSession;
52 
57 
61  protected ‪$mockQuery;
62 
66  protected ‪$mockQuerySettings;
67 
72 
73  protected function ‪setUp()
74  {
75  $this->mockQueryFactory = $this->createMock(\‪TYPO3\CMS\‪Extbase\Persistence\Generic\QueryFactory::class);
76  $this->mockQuery = $this->createMock(\‪TYPO3\CMS\‪Extbase\Persistence\QueryInterface::class);
77  $this->mockQuerySettings = $this->createMock(\‪TYPO3\CMS\‪Extbase\Persistence\Generic\QuerySettingsInterface::class);
78  $this->mockQuery->expects($this->any())->method('getQuerySettings')->will($this->returnValue($this->mockQuerySettings));
79  $this->mockQueryFactory->expects($this->any())->method('create')->will($this->returnValue($this->mockQuery));
80  $this->mockSession = $this->createMock(\‪TYPO3\CMS\‪Extbase\Persistence\Generic\Session::class);
81  $this->mockConfigurationManager = $this->createMock(\‪TYPO3\CMS\‪Extbase\Configuration\ConfigurationManager::class);
82  $this->mockBackend = $this->getAccessibleMock(Backend::class, ['dummy'], [$this->mockConfigurationManager], '', false);
83  $this->inject($this->mockBackend, 'session', $this->mockSession);
84  $this->mockPersistenceManager = $this->getAccessibleMock(\‪TYPO3\CMS\‪Extbase\Persistence\Generic\PersistenceManager::class, ['createQueryForType']);
85  $this->inject($this->mockBackend, 'persistenceManager', $this->mockPersistenceManager);
86  $this->inject($this->mockPersistenceManager, 'persistenceSession', $this->mockSession);
87  $this->inject($this->mockPersistenceManager, 'backend', $this->mockBackend);
88  $this->mockPersistenceManager->expects($this->any())->method('createQueryForType')->will($this->returnValue($this->mockQuery));
89  $this->mockObjectManager = $this->createMock(\‪TYPO3\CMS\‪Extbase\Object\ObjectManagerInterface::class);
90  $this->repository = $this->getAccessibleMock(\‪TYPO3\CMS\‪Extbase\Persistence\Repository::class, ['dummy'], [$this->mockObjectManager]);
91  $this->repository->_set('persistenceManager', $this->mockPersistenceManager);
92  }
93 
98  {
99  $this->assertTrue($this->repository instanceof \‪TYPO3\CMS\‪Extbase\Persistence\RepositoryInterface);
100  }
101 
106  {
107  ‪$mockPersistenceManager = $this->createMock(\‪TYPO3\CMS\‪Extbase\Persistence\Generic\PersistenceManager::class);
108  ‪$mockPersistenceManager->expects($this->once())->method('createQueryForType')->with('ExpectedType');
109 
110  $this->repository->_set('objectType', 'ExpectedType');
111  $this->inject($this->repository, 'persistenceManager', ‪$mockPersistenceManager);
112 
113  $this->repository->createQuery();
114  }
115 
120  {
122  ‪$mockQuery = $this->createMock(\‪TYPO3\CMS\‪Extbase\Persistence\QueryInterface::class);
123  ‪$mockQuery->expects($this->once())->method('setOrderings')->with($orderings);
124  ‪$mockPersistenceManager = $this->createMock(\‪TYPO3\CMS\‪Extbase\Persistence\Generic\PersistenceManager::class);
125  ‪$mockPersistenceManager->expects($this->exactly(2))->method('createQueryForType')->with('ExpectedType')->will($this->returnValue(‪$mockQuery));
126 
127  $this->repository->_set('objectType', 'ExpectedType');
128  $this->inject($this->repository, 'persistenceManager', ‪$mockPersistenceManager);
129  $this->repository->setDefaultOrderings($orderings);
130  $this->repository->createQuery();
131 
132  $this->repository->setDefaultOrderings([]);
133  $this->repository->createQuery();
134  }
135 
140  {
141  $expectedResult = $this->createMock(\‪TYPO3\CMS\‪Extbase\Persistence\QueryResultInterface::class);
142 
143  ‪$mockQuery = $this->createMock(\‪TYPO3\CMS\‪Extbase\Persistence\QueryInterface::class);
144  ‪$mockQuery->expects($this->once())->method('execute')->with()->will($this->returnValue($expectedResult));
145 
146  ‪$repository = $this->getMockBuilder(\‪TYPO3\CMS\‪Extbase\Persistence\Repository::class)
147  ->setMethods(['createQuery'])
148  ->setConstructorArgs([$this->mockObjectManager])
149  ->getMock();
150  ‪$repository->expects($this->once())->method('createQuery')->will($this->returnValue(‪$mockQuery));
151 
152  $this->assertSame($expectedResult, ‪$repository->findAll());
153  }
154 
159  {
160  $identifier = '42';
161  $object = new \stdClass();
162 
163  $expectedResult = $this->createMock(\‪TYPO3\CMS\‪Extbase\Persistence\QueryResultInterface::class);
164  $expectedResult->expects($this->once())->method('getFirst')->will($this->returnValue($object));
165 
166  $this->mockQuery->expects($this->any())->method('getQuerySettings')->will($this->returnValue($this->mockQuerySettings));
167  $this->mockQuery->expects($this->once())->method('matching')->will($this->returnValue($this->mockQuery));
168  $this->mockQuery->expects($this->once())->method('execute')->will($this->returnValue($expectedResult));
169 
170  // skip backend, as we want to test the backend
171  $this->mockSession->expects($this->any())->method('hasIdentifier')->will($this->returnValue(false));
172  $this->assertSame($object, $this->repository->findByIdentifier($identifier));
173  }
174 
178  public function ‪addDelegatesToPersistenceManager()
179  {
180  $object = new \stdClass();
181  ‪$mockPersistenceManager = $this->createMock(\‪TYPO3\CMS\‪Extbase\Persistence\PersistenceManagerInterface::class);
182  ‪$mockPersistenceManager->expects($this->once())->method('add')->with($object);
183  $this->inject($this->repository, 'persistenceManager', ‪$mockPersistenceManager);
184  $this->repository->_set('objectType', get_class($object));
185  $this->repository->add($object);
186  }
187 
192  {
193  $object = new \stdClass();
194  ‪$mockPersistenceManager = $this->createMock(\‪TYPO3\CMS\‪Extbase\Persistence\PersistenceManagerInterface::class);
195  ‪$mockPersistenceManager->expects($this->once())->method('remove')->with($object);
196  $this->inject($this->repository, 'persistenceManager', ‪$mockPersistenceManager);
197  $this->repository->_set('objectType', get_class($object));
198  $this->repository->remove($object);
199  }
200 
205  {
206  $object = new \stdClass();
207  ‪$mockPersistenceManager = $this->createMock(\‪TYPO3\CMS\‪Extbase\Persistence\PersistenceManagerInterface::class);
208  ‪$mockPersistenceManager->expects($this->once())->method('update')->with($object);
209  $this->inject($this->repository, 'persistenceManager', ‪$mockPersistenceManager);
210  $this->repository->_set('objectType', get_class($object));
211  $this->repository->update($object);
212  }
213 
218  {
219  $mockQueryResult = $this->createMock(\‪TYPO3\CMS\‪Extbase\Persistence\QueryResultInterface::class);
220  ‪$mockQuery = $this->createMock(\‪TYPO3\CMS\‪Extbase\Persistence\QueryInterface::class);
221  ‪$mockQuery->expects($this->once())->method('equals')->with('foo', 'bar')->will($this->returnValue('matchCriteria'));
222  ‪$mockQuery->expects($this->once())->method('matching')->with('matchCriteria')->will($this->returnValue(‪$mockQuery));
223  ‪$mockQuery->expects($this->once())->method('execute')->with()->will($this->returnValue($mockQueryResult));
224 
225  ‪$repository = $this->getMockBuilder(\‪TYPO3\CMS\‪Extbase\Persistence\Repository::class)
226  ->setMethods(['createQuery'])
227  ->setConstructorArgs([$this->mockObjectManager])
228  ->getMock();
229  ‪$repository->expects($this->once())->method('createQuery')->will($this->returnValue(‪$mockQuery));
230 
231  $this->assertSame($mockQueryResult, ‪$repository->findByFoo('bar'));
232  }
233 
238  {
239  $object = new \stdClass();
240  $mockQueryResult = $this->createMock(\‪TYPO3\CMS\‪Extbase\Persistence\QueryResultInterface::class);
241  $mockQueryResult->expects($this->once())->method('getFirst')->will($this->returnValue($object));
242  ‪$mockQuery = $this->createMock(\‪TYPO3\CMS\‪Extbase\Persistence\QueryInterface::class);
243  ‪$mockQuery->expects($this->once())->method('equals')->with('foo', 'bar')->will($this->returnValue('matchCriteria'));
244  ‪$mockQuery->expects($this->once())->method('matching')->with('matchCriteria')->will($this->returnValue(‪$mockQuery));
245  ‪$mockQuery->expects($this->once())->method('setLimit')->will($this->returnValue(‪$mockQuery));
246  ‪$mockQuery->expects($this->once())->method('execute')->will($this->returnValue($mockQueryResult));
247 
248  ‪$repository = $this->getMockBuilder(\‪TYPO3\CMS\‪Extbase\Persistence\Repository::class)
249  ->setMethods(['createQuery'])
250  ->setConstructorArgs([$this->mockObjectManager])
251  ->getMock();
252  ‪$repository->expects($this->once())->method('createQuery')->will($this->returnValue(‪$mockQuery));
253 
254  $this->assertSame($object, ‪$repository->findOneByFoo('bar'));
255  }
256 
261  {
262  ‪$mockQuery = $this->createMock(\‪TYPO3\CMS\‪Extbase\Persistence\QueryInterface::class);
263  $mockQueryResult = $this->createMock(\‪TYPO3\CMS\‪Extbase\Persistence\QueryResultInterface::class);
264  ‪$mockQuery->expects($this->once())->method('equals')->with('foo', 'bar')->will($this->returnValue('matchCriteria'));
265  ‪$mockQuery->expects($this->once())->method('matching')->with('matchCriteria')->will($this->returnValue(‪$mockQuery));
266  ‪$mockQuery->expects($this->once())->method('execute')->will($this->returnValue($mockQueryResult));
267  $mockQueryResult->expects($this->once())->method('count')->will($this->returnValue(2));
268 
269  ‪$repository = $this->getMockBuilder(\‪TYPO3\CMS\‪Extbase\Persistence\Repository::class)
270  ->setMethods(['createQuery'])
271  ->setConstructorArgs([$this->mockObjectManager])
272  ->getMock();
273  ‪$repository->expects($this->once())->method('createQuery')->will($this->returnValue(‪$mockQuery));
274 
275  $this->assertSame(2, ‪$repository->countByFoo('bar'));
276  }
277 
282  {
283  $this->expectException(UnsupportedMethodException::class);
284  $this->expectExceptionCode(1233180480);
285  ‪$repository = $this->getMockBuilder(\‪TYPO3\CMS\‪Extbase\Persistence\Repository::class)
286  ->setMethods(['createQuery'])
287  ->setConstructorArgs([$this->mockObjectManager])
288  ->getMock();
289  ‪$repository->__call('foo', []);
290  }
291 
295  public function ‪addChecksObjectType()
296  {
297  $this->expectException(IllegalObjectTypeException::class);
298  $this->expectExceptionCode(1248363335);
299  $this->repository->_set('objectType', 'ExpectedObjectType');
300  $this->repository->add(new \stdClass());
301  }
302 
306  public function ‪removeChecksObjectType()
307  {
308  $this->expectException(IllegalObjectTypeException::class);
309  $this->expectExceptionCode(1248363336);
310  $this->repository->_set('objectType', 'ExpectedObjectType');
311  $this->repository->remove(new \stdClass());
312  }
313 
317  public function ‪updateChecksObjectType()
318  {
319  $this->expectException(IllegalObjectTypeException::class);
320  $this->expectExceptionCode(1249479625);
321  ‪$repository = $this->getAccessibleMock(\‪TYPO3\CMS\‪Extbase\Persistence\Repository::class, ['dummy'], [$this->mockObjectManager]);
322  ‪$repository->_set('objectType', 'ExpectedObjectType');
323 
324  ‪$repository->update(new \stdClass());
325  }
326 
331  {
332  ‪$repository = new ‪Fixture\Domain\Repository\EntityRepository($this->mockObjectManager);
333 
334  $reflectionClass = new \ReflectionClass(‪$repository);
335  $reflectionProperty = $reflectionClass->getProperty('objectType');
336  $reflectionProperty->setAccessible(true);
337  $objectType = $reflectionProperty->getValue(‪$repository);
338 
339  $this->assertEquals(Fixture\Domain\Model\Entity::class, $objectType);
340  }
341 
346  {
347  $this->mockQuery = new \TYPO3\CMS\Extbase\Persistence\Generic\Query('foo');
348  $mockDefaultQuerySettings = $this->createMock(\‪TYPO3\CMS\‪Extbase\Persistence\Generic\QuerySettingsInterface::class);
349  $this->repository->setDefaultQuerySettings($mockDefaultQuerySettings);
350  $query = $this->repository->createQuery();
351  $instanceQuerySettings = $query->getQuerySettings();
352  $this->assertEquals($mockDefaultQuerySettings, $instanceQuerySettings);
353  $this->assertNotSame($mockDefaultQuerySettings, $instanceQuerySettings);
354  }
355 
360  {
361  $fakeUid = '123';
362  $object = new \stdClass();
363  ‪$repository = $this->getMockBuilder(\‪TYPO3\CMS\‪Extbase\Persistence\Repository::class)
364  ->setMethods(['findByIdentifier'])
365  ->setConstructorArgs([$this->mockObjectManager])
366  ->getMock();
367  $expectedResult = $object;
368  ‪$repository->expects($this->once())->method('findByIdentifier')->will($this->returnValue($object));
369  $actualResult = ‪$repository->findByUid($fakeUid);
370  $this->assertSame($expectedResult, $actualResult);
371  }
372 
376  public function ‪updateRejectsObjectsOfWrongType()
377  {
378  $this->expectException(IllegalObjectTypeException::class);
379  $this->expectExceptionCode(1249479625);
380  $this->repository->_set('objectType', 'Foo');
381  $this->repository->update(new \stdClass());
382  }
383 
388  {
389  $queryResultArray = [
390  0 => [
391  'foo' => 'bar',
392  ],
393  ];
394  $this->mockQuery->expects($this->once())->method('equals')->with('foo', 'bar')->will($this->returnValue('matchCriteria'));
395  $this->mockQuery->expects($this->once())->method('matching')->with('matchCriteria')->will($this->returnValue($this->mockQuery));
396  $this->mockQuery->expects($this->once())->method('setLimit')->with(1)->will($this->returnValue($this->mockQuery));
397  $this->mockQuery->expects($this->once())->method('execute')->will($this->returnValue($queryResultArray));
398  $this->assertSame(['foo' => 'bar'], $this->repository->findOneByFoo('bar'));
399  }
400 
405  {
406  $queryResultArray = [];
407  $this->mockQuery->expects($this->once())->method('equals')->with('foo', 'bar')->will($this->returnValue('matchCriteria'));
408  $this->mockQuery->expects($this->once())->method('matching')->with('matchCriteria')->will($this->returnValue($this->mockQuery));
409  $this->mockQuery->expects($this->once())->method('setLimit')->with(1)->will($this->returnValue($this->mockQuery));
410  $this->mockQuery->expects($this->once())->method('execute')->will($this->returnValue($queryResultArray));
411  $this->assertNull($this->repository->findOneByFoo('bar'));
412  }
413 }
‪TYPO3\CMS\Extbase\Persistence\Generic\Backend
Definition: Backend.php:30
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\removeDelegatesToPersistenceManager
‪removeDelegatesToPersistenceManager()
Definition: RepositoryTest.php:182
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\abstractRepositoryImplementsRepositoryInterface
‪abstractRepositoryImplementsRepositoryInterface()
Definition: RepositoryTest.php:88
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\removeChecksObjectType
‪removeChecksObjectType()
Definition: RepositoryTest.php:297
‪TYPO3\CMS\Extbase\Annotation
Definition: IgnoreValidation.php:4
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\magicCallMethodAcceptsCountBySomethingCallsAndExecutesAQueryWithThatCriteria
‪magicCallMethodAcceptsCountBySomethingCallsAndExecutesAQueryWithThatCriteria()
Definition: RepositoryTest.php:251
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\magicCallMethodAcceptsFindOneBySomethingCallsAndExecutesAQueryWithThatCriteria
‪magicCallMethodAcceptsFindOneBySomethingCallsAndExecutesAQueryWithThatCriteria()
Definition: RepositoryTest.php:228
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\magicCallMethodTriggersAnErrorIfUnknownMethodsAreCalled
‪magicCallMethodTriggersAnErrorIfUnknownMethodsAreCalled()
Definition: RepositoryTest.php:272
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\updateChecksObjectType
‪updateChecksObjectType()
Definition: RepositoryTest.php:308
‪TYPO3
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\createQueryReturnsQueryWithUnmodifiedDefaultQuerySettings
‪createQueryReturnsQueryWithUnmodifiedDefaultQuerySettings()
Definition: RepositoryTest.php:336
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\findByidentifierReturnsResultOfGetObjectByIdentifierCallFromBackend
‪findByidentifierReturnsResultOfGetObjectByIdentifierCallFromBackend()
Definition: RepositoryTest.php:149
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\magicCallMethodReturnsNullInFindOneBySomethingIfQueryReturnsEmptyRawResult
‪magicCallMethodReturnsNullInFindOneBySomethingIfQueryReturnsEmptyRawResult()
Definition: RepositoryTest.php:395
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\Fixture\Domain\Repository\EntityRepository
Definition: EntityRepository.php:20
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\$mockBackend
‪TYPO3 CMS Extbase Persistence Generic BackendInterface $mockBackend
Definition: RepositoryTest.php:42
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\$mockObjectManager
‪TYPO3 CMS Extbase Object ObjectManagerInterface $mockObjectManager
Definition: RepositoryTest.php:34
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\$mockQuerySettings
‪TYPO3 CMS Extbase Persistence Generic QuerySettingsInterface $mockQuerySettings
Definition: RepositoryTest.php:58
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\findByUidReturnsResultOfGetObjectByIdentifierCall
‪findByUidReturnsResultOfGetObjectByIdentifierCall()
Definition: RepositoryTest.php:350
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\$mockSession
‪TYPO3 CMS Extbase Persistence Generic Session $mockSession
Definition: RepositoryTest.php:46
‪TYPO3\CMS\Extbase\Persistence\Generic\Exception\UnsupportedMethodException
Definition: UnsupportedMethodException.php:21
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\constructSetsObjectTypeFromClassName
‪constructSetsObjectTypeFromClassName()
Definition: RepositoryTest.php:321
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_ASCENDING
‪const ORDER_ASCENDING
Definition: QueryInterface.php:95
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\magicCallMethodAcceptsFindBySomethingCallsAndExecutesAQueryWithThatCriteria
‪magicCallMethodAcceptsFindBySomethingCallsAndExecutesAQueryWithThatCriteria()
Definition: RepositoryTest.php:208
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\setUp
‪setUp()
Definition: RepositoryTest.php:64
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\findAllCreatesQueryAndReturnsResultOfExecuteCall
‪findAllCreatesQueryAndReturnsResultOfExecuteCall()
Definition: RepositoryTest.php:130
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\updateRejectsObjectsOfWrongType
‪updateRejectsObjectsOfWrongType()
Definition: RepositoryTest.php:367
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\createQuerySetsDefaultOrderingIfDefined
‪createQuerySetsDefaultOrderingIfDefined()
Definition: RepositoryTest.php:110
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\addDelegatesToPersistenceManager
‪addDelegatesToPersistenceManager()
Definition: RepositoryTest.php:169
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\$mockQueryFactory
‪TYPO3 CMS Extbase Persistence Generic QueryFactory $mockQueryFactory
Definition: RepositoryTest.php:38
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\magicCallMethodReturnsFirstArrayKeyInFindOneBySomethingIfQueryReturnsRawResult
‪magicCallMethodReturnsFirstArrayKeyInFindOneBySomethingIfQueryReturnsRawResult()
Definition: RepositoryTest.php:378
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\createQueryCallsPersistenceManagerWithExpectedClassName
‪createQueryCallsPersistenceManagerWithExpectedClassName()
Definition: RepositoryTest.php:96
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\$mockConfigurationManager
‪TYPO3 CMS Extbase Configuration ConfigurationManager $mockConfigurationManager
Definition: RepositoryTest.php:62
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\$mockQuery
‪TYPO3 CMS Extbase Persistence QueryInterface $mockQuery
Definition: RepositoryTest.php:54
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\addChecksObjectType
‪addChecksObjectType()
Definition: RepositoryTest.php:286
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\$repository
‪TYPO3 CMS Extbase Persistence Repository PHPUnit_Framework_MockObject_MockObject TYPO3 TestingFramework Core AccessibleObjectInterface $repository
Definition: RepositoryTest.php:30
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\updateDelegatesToPersistenceManager
‪updateDelegatesToPersistenceManager()
Definition: RepositoryTest.php:195
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\$mockPersistenceManager
‪TYPO3 CMS Extbase Persistence PersistenceManagerInterface $mockPersistenceManager
Definition: RepositoryTest.php:50
‪TYPO3\CMS\Extbase\Persistence\Exception\IllegalObjectTypeException
Definition: IllegalObjectTypeException.php:21
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest
Definition: RepositoryTest.php:27