‪TYPO3CMS  10.4
RepositoryTest.php
Go to the documentation of this file.
1 <?php
2 
3 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 
19 
37 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
38 
42 class ‪RepositoryTest extends UnitTestCase
43 {
47  protected ‪$repository;
48 
52  protected ‪$mockObjectManager;
53 
57  protected ‪$mockQueryFactory;
58 
62  protected ‪$mockBackend;
63 
67  protected ‪$mockSession;
68 
73 
77  protected ‪$mockQuery;
78 
82  protected ‪$mockQuerySettings;
83 
88 
89  protected function ‪setUp(): void
90  {
91  parent::setUp();
92  $this->mockQueryFactory = $this->createMock(QueryFactory::class);
93  $this->mockQuery = $this->createMock(QueryInterface::class);
94  $this->mockQuerySettings = $this->createMock(QuerySettingsInterface::class);
95  $this->mockQuery->expects(self::any())->method('getQuerySettings')->willReturn($this->mockQuerySettings);
96  $this->mockQueryFactory->expects(self::any())->method('create')->willReturn($this->mockQuery);
97  $this->mockSession = $this->createMock(Session::class);
98  $this->mockConfigurationManager = $this->createMock(ConfigurationManager::class);
99  $this->mockBackend = $this->getAccessibleMock(Backend::class, ['dummy'], [$this->mockConfigurationManager], '', false);
100  $this->mockBackend->_set('session', $this->mockSession);
101  $this->mockPersistenceManager = $this->getAccessibleMock(
102  PersistenceManager::class,
103  ['createQueryForType'],
104  [
105  $this->mockQueryFactory,
106  $this->mockBackend,
107  $this->mockSession
108  ]
109  );
110  $this->mockBackend->setPersistenceManager($this->mockPersistenceManager);
111  $this->mockPersistenceManager->expects(self::any())->method('createQueryForType')->willReturn($this->mockQuery);
112  $this->mockObjectManager = $this->createMock(ObjectManagerInterface::class);
113  $this->repository = $this->getAccessibleMock(Repository::class, ['dummy'], [$this->mockObjectManager]);
114  $this->repository->injectPersistenceManager($this->mockPersistenceManager);
115  }
116 
121  {
122  self::assertTrue($this->repository instanceof ‪RepositoryInterface);
123  }
124 
129  {
130  ‪$mockPersistenceManager = $this->createMock(PersistenceManager::class);
131  ‪$mockPersistenceManager->expects(self::once())->method('createQueryForType')->with('ExpectedType');
132 
133  $this->repository->_set('objectType', 'ExpectedType');
134  $this->repository->injectPersistenceManager(‪$mockPersistenceManager);
135 
136  $this->repository->createQuery();
137  }
138 
143  {
144  $orderings = ['foo' => ‪QueryInterface::ORDER_ASCENDING];
145  ‪$mockQuery = $this->createMock(QueryInterface::class);
146  ‪$mockQuery->expects(self::once())->method('setOrderings')->with($orderings);
147  ‪$mockPersistenceManager = $this->createMock(PersistenceManager::class);
148  ‪$mockPersistenceManager->expects(self::exactly(2))->method('createQueryForType')->with('ExpectedType')->willReturn(‪$mockQuery);
149 
150  $this->repository->_set('objectType', 'ExpectedType');
151  $this->repository->injectPersistenceManager(‪$mockPersistenceManager);
152  $this->repository->setDefaultOrderings($orderings);
153  $this->repository->createQuery();
154 
155  $this->repository->setDefaultOrderings([]);
156  $this->repository->createQuery();
157  }
158 
163  {
164  $expectedResult = $this->createMock(QueryResultInterface::class);
165 
166  ‪$mockQuery = $this->createMock(QueryInterface::class);
167  ‪$mockQuery->expects(self::once())->method('execute')->with()->willReturn($expectedResult);
168 
169  ‪$repository = $this->getMockBuilder(Repository::class)
170  ->setMethods(['createQuery'])
171  ->setConstructorArgs([$this->mockObjectManager])
172  ->getMock();
173  ‪$repository->expects(self::once())->method('createQuery')->willReturn(‪$mockQuery);
174 
175  self::assertSame($expectedResult, ‪$repository->‪findAll());
176  }
177 
182  {
183  $identifier = '42';
184  $object = new \stdClass();
185 
186  $expectedResult = $this->createMock(QueryResultInterface::class);
187  $expectedResult->expects(self::once())->method('getFirst')->willReturn($object);
188 
189  $this->mockQuery->expects(self::any())->method('getQuerySettings')->willReturn($this->mockQuerySettings);
190  $this->mockQuery->expects(self::once())->method('matching')->willReturn($this->mockQuery);
191  $this->mockQuery->expects(self::once())->method('execute')->willReturn($expectedResult);
192 
193  // skip backend, as we want to test the backend
194  $this->mockSession->expects(self::any())->method('hasIdentifier')->willReturn(false);
195  self::assertSame($object, $this->repository->findByIdentifier($identifier));
196  }
197 
201  public function ‪addDelegatesToPersistenceManager()
202  {
203  $object = new \stdClass();
204  ‪$mockPersistenceManager = $this->createMock(PersistenceManagerInterface::class);
205  ‪$mockPersistenceManager->expects(self::once())->method('add')->with($object);
206  $this->repository->injectPersistenceManager(‪$mockPersistenceManager);
207  $this->repository->_set('objectType', get_class($object));
208  $this->repository->‪add($object);
209  }
210 
215  {
216  $object = new \stdClass();
217  ‪$mockPersistenceManager = $this->createMock(PersistenceManagerInterface::class);
218  ‪$mockPersistenceManager->expects(self::once())->method('remove')->with($object);
219  $this->repository->injectPersistenceManager(‪$mockPersistenceManager);
220  $this->repository->_set('objectType', get_class($object));
221  $this->repository->‪remove($object);
222  }
223 
228  {
229  $object = new \stdClass();
230  ‪$mockPersistenceManager = $this->createMock(PersistenceManagerInterface::class);
231  ‪$mockPersistenceManager->expects(self::once())->method('update')->with($object);
232  $this->repository->injectPersistenceManager(‪$mockPersistenceManager);
233  $this->repository->_set('objectType', get_class($object));
234  $this->repository->‪update($object);
235  }
236 
241  {
242  $mockQueryResult = $this->createMock(QueryResultInterface::class);
243  ‪$mockQuery = $this->createMock(QueryInterface::class);
244  ‪$mockQuery->expects(self::once())->method('equals')->with('foo', 'bar')->willReturn('matchCriteria');
245  ‪$mockQuery->expects(self::once())->method('matching')->with('matchCriteria')->willReturn(‪$mockQuery);
246  ‪$mockQuery->expects(self::once())->method('execute')->with()->willReturn($mockQueryResult);
247 
248  ‪$repository = $this->getMockBuilder(Repository::class)
249  ->setMethods(['createQuery'])
250  ->setConstructorArgs([$this->mockObjectManager])
251  ->getMock();
252  ‪$repository->expects(self::once())->method('createQuery')->willReturn(‪$mockQuery);
253 
254  self::assertSame($mockQueryResult, ‪$repository->findByFoo('bar'));
255  }
256 
261  {
262  $object = new \stdClass();
263  $mockQueryResult = $this->createMock(QueryResultInterface::class);
264  $mockQueryResult->expects(self::once())->method('getFirst')->willReturn($object);
265  ‪$mockQuery = $this->createMock(QueryInterface::class);
266  ‪$mockQuery->expects(self::once())->method('equals')->with('foo', 'bar')->willReturn('matchCriteria');
267  ‪$mockQuery->expects(self::once())->method('matching')->with('matchCriteria')->willReturn(‪$mockQuery);
268  ‪$mockQuery->expects(self::once())->method('setLimit')->willReturn(‪$mockQuery);
269  ‪$mockQuery->expects(self::once())->method('execute')->willReturn($mockQueryResult);
270 
271  ‪$repository = $this->getMockBuilder(Repository::class)
272  ->setMethods(['createQuery'])
273  ->setConstructorArgs([$this->mockObjectManager])
274  ->getMock();
275  ‪$repository->expects(self::once())->method('createQuery')->willReturn(‪$mockQuery);
276 
277  self::assertSame($object, ‪$repository->findOneByFoo('bar'));
278  }
279 
284  {
285  ‪$mockQuery = $this->createMock(QueryInterface::class);
286  $mockQueryResult = $this->createMock(QueryResultInterface::class);
287  ‪$mockQuery->expects(self::once())->method('equals')->with('foo', 'bar')->willReturn('matchCriteria');
288  ‪$mockQuery->expects(self::once())->method('matching')->with('matchCriteria')->willReturn(‪$mockQuery);
289  ‪$mockQuery->expects(self::once())->method('execute')->willReturn($mockQueryResult);
290  $mockQueryResult->expects(self::once())->method('count')->willReturn(2);
291 
292  ‪$repository = $this->getMockBuilder(Repository::class)
293  ->setMethods(['createQuery'])
294  ->setConstructorArgs([$this->mockObjectManager])
295  ->getMock();
296  ‪$repository->expects(self::once())->method('createQuery')->willReturn(‪$mockQuery);
297 
298  self::assertSame(2, ‪$repository->countByFoo('bar'));
299  }
300 
305  {
306  $this->expectException(UnsupportedMethodException::class);
307  $this->expectExceptionCode(1233180480);
308  ‪$repository = $this->getMockBuilder(Repository::class)
309  ->setMethods(['createQuery'])
310  ->setConstructorArgs([$this->mockObjectManager])
311  ->getMock();
312  ‪$repository->‪__call('foo', []);
313  }
314 
318  public function ‪addChecksObjectType()
319  {
320  $this->expectException(IllegalObjectTypeException::class);
321  $this->expectExceptionCode(1248363335);
322  $this->repository->_set('objectType', 'ExpectedObjectType');
323  $this->repository->add(new \stdClass());
324  }
325 
329  public function ‪removeChecksObjectType()
330  {
331  $this->expectException(IllegalObjectTypeException::class);
332  $this->expectExceptionCode(1248363336);
333  $this->repository->_set('objectType', 'ExpectedObjectType');
334  $this->repository->remove(new \stdClass());
335  }
336 
340  public function ‪updateChecksObjectType()
341  {
342  $this->expectException(IllegalObjectTypeException::class);
343  $this->expectExceptionCode(1249479625);
344  ‪$repository = $this->getAccessibleMock(Repository::class, ['dummy'], [$this->mockObjectManager]);
345  ‪$repository->_set('objectType', 'ExpectedObjectType');
346 
347  ‪$repository->‪update(new \stdClass());
348  }
349 
354  {
355  ‪$repository = new ‪EntityRepository($this->mockObjectManager);
356 
357  $reflectionClass = new \ReflectionClass(‪$repository);
358  $reflectionProperty = $reflectionClass->getProperty('objectType');
359  $reflectionProperty->setAccessible(true);
360  $objectType = $reflectionProperty->getValue(‪$repository);
361 
362  self::assertEquals(Entity::class, $objectType);
363  }
364 
369  {
370  $this->mockQuery = new ‪Query('foo');
371  $mockDefaultQuerySettings = $this->createMock(QuerySettingsInterface::class);
372  $this->repository->setDefaultQuerySettings($mockDefaultQuerySettings);
373  $query = $this->repository->createQuery();
374  $instanceQuerySettings = $query->getQuerySettings();
375  self::assertEquals($mockDefaultQuerySettings, $instanceQuerySettings);
376  self::assertNotSame($mockDefaultQuerySettings, $instanceQuerySettings);
377  }
378 
383  {
384  $fakeUid = '123';
385  $object = new \stdClass();
386  ‪$repository = $this->getMockBuilder(Repository::class)
387  ->setMethods(['findByIdentifier'])
388  ->setConstructorArgs([$this->mockObjectManager])
389  ->getMock();
390  $expectedResult = $object;
391  ‪$repository->expects(self::once())->method('findByIdentifier')->willReturn($object);
392  $actualResult = ‪$repository->‪findByUid($fakeUid);
393  self::assertSame($expectedResult, $actualResult);
394  }
395 
399  public function ‪updateRejectsObjectsOfWrongType()
400  {
401  $this->expectException(IllegalObjectTypeException::class);
402  $this->expectExceptionCode(1249479625);
403  $this->repository->_set('objectType', 'Foo');
404  $this->repository->update(new \stdClass());
405  }
406 
411  {
412  $queryResultArray = [
413  0 => [
414  'foo' => 'bar',
415  ],
416  ];
417  $this->mockQuery->expects(self::once())->method('equals')->with('foo', 'bar')->willReturn('matchCriteria');
418  $this->mockQuery->expects(self::once())->method('matching')->with('matchCriteria')->willReturn($this->mockQuery);
419  $this->mockQuery->expects(self::once())->method('setLimit')->with(1)->willReturn($this->mockQuery);
420  $this->mockQuery->expects(self::once())->method('execute')->willReturn($queryResultArray);
421  self::assertSame(['foo' => 'bar'], $this->repository->findOneByFoo('bar'));
422  }
423 
428  {
429  $queryResultArray = [];
430  $this->mockQuery->expects(self::once())->method('equals')->with('foo', 'bar')->willReturn('matchCriteria');
431  $this->mockQuery->expects(self::once())->method('matching')->with('matchCriteria')->willReturn($this->mockQuery);
432  $this->mockQuery->expects(self::once())->method('setLimit')->with(1)->willReturn($this->mockQuery);
433  $this->mockQuery->expects(self::once())->method('execute')->willReturn($queryResultArray);
434  self::assertNull($this->repository->findOneByFoo('bar'));
435  }
436 }
‪TYPO3\CMS\Extbase\Persistence\Generic\Backend
Definition: Backend.php:51
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\removeDelegatesToPersistenceManager
‪removeDelegatesToPersistenceManager()
Definition: RepositoryTest.php:205
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\abstractRepositoryImplementsRepositoryInterface
‪abstractRepositoryImplementsRepositoryInterface()
Definition: RepositoryTest.php:111
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\removeChecksObjectType
‪removeChecksObjectType()
Definition: RepositoryTest.php:320
‪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:46
‪TYPO3\CMS\Extbase\Persistence\Generic\QueryFactory
Definition: QueryFactory.php:30
‪TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface
Definition: PersistenceManagerInterface.php:22
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\magicCallMethodAcceptsCountBySomethingCallsAndExecutesAQueryWithThatCriteria
‪magicCallMethodAcceptsCountBySomethingCallsAndExecutesAQueryWithThatCriteria()
Definition: RepositoryTest.php:274
‪TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface\update
‪update($object)
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\magicCallMethodAcceptsFindOneBySomethingCallsAndExecutesAQueryWithThatCriteria
‪magicCallMethodAcceptsFindOneBySomethingCallsAndExecutesAQueryWithThatCriteria()
Definition: RepositoryTest.php:251
‪TYPO3\CMS\Extbase\Persistence\QueryInterface
Definition: QueryInterface.php:29
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\magicCallMethodTriggersAnErrorIfUnknownMethodsAreCalled
‪magicCallMethodTriggersAnErrorIfUnknownMethodsAreCalled()
Definition: RepositoryTest.php:295
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\updateChecksObjectType
‪updateChecksObjectType()
Definition: RepositoryTest.php:331
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\createQueryReturnsQueryWithUnmodifiedDefaultQuerySettings
‪createQueryReturnsQueryWithUnmodifiedDefaultQuerySettings()
Definition: RepositoryTest.php:359
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\magicCallMethodReturnsNullInFindOneBySomethingIfQueryReturnsEmptyRawResult
‪magicCallMethodReturnsNullInFindOneBySomethingIfQueryReturnsEmptyRawResult()
Definition: RepositoryTest.php:418
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\Fixture\Domain\Repository\EntityRepository
Definition: EntityRepository.php:23
‪TYPO3\CMS\Extbase\Persistence\Repository\findByUid
‪object null findByUid($uid)
Definition: Repository.php:152
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\$mockBackend
‪TYPO3 CMS Extbase Persistence Generic BackendInterface $mockBackend
Definition: RepositoryTest.php:58
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\$mockObjectManager
‪TYPO3 CMS Extbase Object ObjectManagerInterface $mockObjectManager
Definition: RepositoryTest.php:50
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\$mockQuerySettings
‪TYPO3 CMS Extbase Persistence Generic QuerySettingsInterface $mockQuerySettings
Definition: RepositoryTest.php:74
‪TYPO3\CMS\Extbase\Object\ObjectManagerInterface
Definition: ObjectManagerInterface.php:26
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\findByUidReturnsResultOfGetObjectByIdentifierCall
‪findByUidReturnsResultOfGetObjectByIdentifierCall()
Definition: RepositoryTest.php:373
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\$mockSession
‪TYPO3 CMS Extbase Persistence Generic Session $mockSession
Definition: RepositoryTest.php:62
‪TYPO3\CMS\Extbase\Persistence\Generic\Exception\UnsupportedMethodException
Definition: UnsupportedMethodException.php:26
‪TYPO3\CMS\Extbase\Configuration\ConfigurationManager
Definition: ConfigurationManager.php:33
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\constructSetsObjectTypeFromClassName
‪constructSetsObjectTypeFromClassName()
Definition: RepositoryTest.php:344
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_ASCENDING
‪const ORDER_ASCENDING
Definition: QueryInterface.php:98
‪TYPO3\CMS\Extbase\Persistence\RepositoryInterface
Definition: RepositoryInterface.php:24
‪TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface\remove
‪remove($object)
‪TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager
Definition: PersistenceManager.php:29
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\magicCallMethodAcceptsFindBySomethingCallsAndExecutesAQueryWithThatCriteria
‪magicCallMethodAcceptsFindBySomethingCallsAndExecutesAQueryWithThatCriteria()
Definition: RepositoryTest.php:231
‪TYPO3\CMS\Extbase\Persistence\Generic\Session
Definition: Session.php:27
‪TYPO3\CMS\Extbase\Persistence\Repository
Definition: Repository.php:29
‪TYPO3\CMS\Extbase\Persistence\QueryResultInterface
Definition: QueryResultInterface.php:22
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\setUp
‪setUp()
Definition: RepositoryTest.php:80
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\findAllCreatesQueryAndReturnsResultOfExecuteCall
‪findAllCreatesQueryAndReturnsResultOfExecuteCall()
Definition: RepositoryTest.php:153
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\updateRejectsObjectsOfWrongType
‪updateRejectsObjectsOfWrongType()
Definition: RepositoryTest.php:390
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\createQuerySetsDefaultOrderingIfDefined
‪createQuerySetsDefaultOrderingIfDefined()
Definition: RepositoryTest.php:133
‪TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface
Definition: QuerySettingsInterface.php:22
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\addDelegatesToPersistenceManager
‪addDelegatesToPersistenceManager()
Definition: RepositoryTest.php:192
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\$mockQueryFactory
‪TYPO3 CMS Extbase Persistence Generic QueryFactory $mockQueryFactory
Definition: RepositoryTest.php:54
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\magicCallMethodReturnsFirstArrayKeyInFindOneBySomethingIfQueryReturnsRawResult
‪magicCallMethodReturnsFirstArrayKeyInFindOneBySomethingIfQueryReturnsRawResult()
Definition: RepositoryTest.php:401
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\createQueryCallsPersistenceManagerWithExpectedClassName
‪createQueryCallsPersistenceManagerWithExpectedClassName()
Definition: RepositoryTest.php:119
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\$mockConfigurationManager
‪TYPO3 CMS Extbase Configuration ConfigurationManager $mockConfigurationManager
Definition: RepositoryTest.php:78
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\$mockQuery
‪TYPO3 CMS Extbase Persistence QueryInterface $mockQuery
Definition: RepositoryTest.php:70
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\addChecksObjectType
‪addChecksObjectType()
Definition: RepositoryTest.php:309
‪TYPO3\CMS\Extbase\Persistence\Repository\__call
‪mixed __call($methodName, $arguments)
Definition: Repository.php:224
‪TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface\add
‪add($object)
‪TYPO3\CMS\Extbase\Persistence\Repository\update
‪update($modifiedObject)
Definition: Repository.php:107
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence
Definition: ClassesConfigurationFactoryTest.php:18
‪TYPO3\CMS\Extbase\Persistence\Repository\findAll
‪QueryResultInterface array findAll()
Definition: Repository.php:120
‪TYPO3\CMS\Extbase\Persistence\Generic\Query
Definition: Query.php:38
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\updateDelegatesToPersistenceManager
‪updateDelegatesToPersistenceManager()
Definition: RepositoryTest.php:218
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\Fixture\Domain\Model\Entity
Definition: Entity.php:23
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\$mockPersistenceManager
‪TYPO3 CMS Extbase Persistence PersistenceManagerInterface $mockPersistenceManager
Definition: RepositoryTest.php:66
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest\findByIdentifierReturnsResultOfGetObjectByIdentifierCallFromBackend
‪findByIdentifierReturnsResultOfGetObjectByIdentifierCallFromBackend()
Definition: RepositoryTest.php:172
‪TYPO3\CMS\Extbase\Persistence\Exception\IllegalObjectTypeException
Definition: IllegalObjectTypeException.php:26
‪TYPO3\CMS\Extbase\Tests\Unit\Persistence\RepositoryTest
Definition: RepositoryTest.php:43