‪TYPO3CMS  9.5
ExtensionStatusTest.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 
27 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
28 
32 class ‪ExtensionStatusTest extends UnitTestCase
33 {
37  protected ‪$mockObjectManager;
38 
43 
47  protected ‪$mockLanguageService;
48 
52  protected function ‪setUp()
53  {
54  $this->mockObjectManager = $this->getMockBuilder(ObjectManagerInterface::class)->getMock();
56  $this->mockRepositoryRepository = $this->getMockBuilder(RepositoryRepository::class)
57  ->setConstructorArgs([$this->mockObjectManager])
58  ->getMock();
59  $this->mockLanguageService = $this->createMock(LanguageService::class);
60  }
61 
66  {
67  $reportMock = $this->createMock(ExtensionStatus::class);
68  $this->assertInstanceOf(StatusProviderInterface::class, $reportMock);
69  }
70 
74  public function ‪getStatusReturnsArray()
75  {
76  $report = $this->getMockBuilder(ExtensionStatus::class)
77  ->setMethods(['getSecurityStatusOfExtensions', 'getMainRepositoryStatus'])
78  ->disableOriginalConstructor()
79  ->getMock();
80  $this->assertInternalType('array', $report->getStatus());
81  }
82 
87  {
88  $report = $this->getMockBuilder(ExtensionStatus::class)
89  ->setMethods(['getSecurityStatusOfExtensions', 'getMainRepositoryStatus'])
90  ->disableOriginalConstructor()
91  ->getMock();
92  $this->assertSame(5, \count($report->getStatus()));
93  }
94 
99  {
100  $statusObject = $this->getMockBuilder(Status::class)
101  ->setConstructorArgs(['title', 'value'])
102  ->getMock();
104  $report = $this->getMockBuilder(ExtensionStatus::class)
105  ->setMethods(['getSecurityStatusOfExtensions', 'getMainRepositoryStatus'])
106  ->disableOriginalConstructor()
107  ->getMock();
108  $report->expects($this->any())->method('getMainRepositoryStatus')->will($this->returnValue($statusObject));
109  $resultStatuses = $report->getStatus();
110  foreach ($resultStatuses as $status) {
111  if ($status) {
112  $this->assertInstanceOf(Status::class, $status);
113  }
114  }
115  }
116 
121  {
123  $mockTerObject = $this->getMockBuilder(Extension::class)->getMock();
124  $mockTerObject
125  ->expects($this->any())
126  ->method('getVersion')
127  ->will($this->returnValue('1.0.6'));
128  $mockTerObject
129  ->expects($this->atLeastOnce())
130  ->method('getReviewState')
131  ->will($this->returnValue(0));
132  $mockExtensionList = [
133  'enetcache' => [
134  'installed' => true,
135  'terObject' => $mockTerObject
136  ],
137  ];
139  $mockListUtility = $this->getMockBuilder(ListUtility::class)->getMock();
140  $mockListUtility
141  ->expects($this->once())
142  ->method('getAvailableAndInstalledExtensionsWithAdditionalInformation')
143  ->will($this->returnValue($mockExtensionList));
144 
146  $mockReport = $this->getAccessibleMock(ExtensionStatus::class, ['getMainRepositoryStatus'], [], '', false);
147  $mockReport->_set('objectManager', $this->mockObjectManager);
148  $mockReport->_set('listUtility', $mockListUtility);
149  $mockReport->_set('languageService', $this->mockLanguageService);
150  $mockReport
151  ->expects($this->once())
152  ->method('getMainRepositoryStatus')
153  ->will($this->returnValue('foo'));
154 
155  $result = $mockReport->getStatus();
156  $this->assertSame('foo', $result['mainRepositoryStatus']);
157  }
158 
163  {
164  $this->mockRepositoryRepository
165  ->expects($this->once())
166  ->method('findOneTypo3OrgRepository')
167  ->will($this->returnValue(null));
168 
170  $mockReport = $this->getAccessibleMock(ExtensionStatus::class, ['dummy'], [], '', false);
171  $mockReport->_set('objectManager', $this->mockObjectManager);
172  $statusMock = $this->createMock(Status::class);
173  $this->mockObjectManager
174  ->expects($this->once())
175  ->method('get')
176  ->with($this->anything(), $this->anything(), $this->anything(), $this->anything(), ‪Status::ERROR)
177  ->will($this->returnValue($statusMock));
178  $mockReport->_set('repositoryRepository', $this->mockRepositoryRepository);
179  $mockReport->_set('languageService', $this->mockLanguageService);
180 
181  $result = $mockReport->_call('getMainRepositoryStatus');
182  $this->assertSame($statusMock, $result);
183  }
184 
189  {
191  $mockRepository = $this->getMockBuilder(Repository::class)->getMock();
192  $mockRepository
193  ->expects($this->once())
194  ->method('getLastUpdate')
195  ->will($this->returnValue(new \DateTime('-8 days')));
196 
197  $this->mockRepositoryRepository
198  ->expects($this->once())
199  ->method('findOneTypo3OrgRepository')
200  ->will($this->returnValue($mockRepository));
201 
203  $mockReport = $this->getAccessibleMock(ExtensionStatus::class, ['dummy'], [], '', false);
204  $mockReport->_set('objectManager', $this->mockObjectManager);
205  $statusMock = $this->createMock(Status::class);
206  $this->mockObjectManager
207  ->expects($this->once())
208  ->method('get')
209  ->with($this->anything(), $this->anything(), $this->anything(), $this->anything(), ‪Status::NOTICE)
210  ->will($this->returnValue($statusMock));
211  $mockReport->_set('repositoryRepository', $this->mockRepositoryRepository);
212  $mockReport->_set('languageService', $this->mockLanguageService);
213 
215  $result = $mockReport->_call('getMainRepositoryStatus');
216  $this->assertSame($statusMock, $result);
217  }
218 
223  {
225  $mockRepository = $this->getMockBuilder(Repository::class)->getMock();
226  $mockRepository
227  ->expects($this->once())
228  ->method('getLastUpdate')
229  ->will($this->returnValue(new \DateTime('-6 days')));
230 
231  $this->mockRepositoryRepository
232  ->expects($this->once())
233  ->method('findOneTypo3OrgRepository')
234  ->will($this->returnValue($mockRepository));
235 
237  $mockReport = $this->getAccessibleMock(ExtensionStatus::class, ['dummy'], [], '', false);
238  $mockReport->_set('objectManager', $this->mockObjectManager);
239  $statusMock = $this->createMock(Status::class);
240  $this->mockObjectManager
241  ->expects($this->once())
242  ->method('get')
243  ->with($this->anything(), $this->anything(), $this->anything(), $this->anything(), ‪Status::OK)
244  ->will($this->returnValue($statusMock));
245  $mockReport->_set('repositoryRepository', $this->mockRepositoryRepository);
246  $mockReport->_set('languageService', $this->mockLanguageService);
247 
249  $result = $mockReport->_call('getMainRepositoryStatus');
250  $this->assertSame($statusMock, $result);
251  }
252 
257  {
259  $mockTerObject = $this->getMockBuilder(Extension::class)->getMock();
260  $mockTerObject
261  ->expects($this->any())
262  ->method('getVersion')
263  ->will($this->returnValue('1.0.6'));
264  $mockTerObject
265  ->expects($this->atLeastOnce())
266  ->method('getReviewState')
267  ->will($this->returnValue(0));
268  $mockExtensionList = [
269  'enetcache' => [
270  'installed' => true,
271  'terObject' => $mockTerObject
272  ],
273  ];
275  $mockListUtility = $this->getMockBuilder(ListUtility::class)->getMock();
276  $mockListUtility
277  ->expects($this->once())
278  ->method('getAvailableAndInstalledExtensionsWithAdditionalInformation')
279  ->will($this->returnValue($mockExtensionList));
280 
282  $mockReport = $this->getAccessibleMock(ExtensionStatus::class, ['dummy'], [], '', false);
283  $mockReport->_set('objectManager', $this->mockObjectManager);
284  $statusMock = $this->createMock(Status::class);
285  $this->mockObjectManager
286  ->expects($this->at(0))
287  ->method('get')
288  ->with($this->anything(), $this->anything(), $this->anything(), $this->anything(), ‪Status::OK)
289  ->will($this->returnValue($statusMock));
290  $mockReport->_set('listUtility', $mockListUtility);
291  $mockReport->_set('languageService', $this->mockLanguageService);
292 
293  $result = $mockReport->_call('getSecurityStatusOfExtensions');
295  $loadedResult = $result->loaded;
296  $this->assertSame($statusMock, $loadedResult);
297  }
298 
303  {
305  $mockTerObject = $this->getMockBuilder(Extension::class)->getMock();
306  $mockTerObject
307  ->expects($this->any())
308  ->method('getVersion')
309  ->will($this->returnValue('1.0.6'));
310  $mockTerObject
311  ->expects($this->atLeastOnce())
312  ->method('getReviewState')
313  ->will($this->returnValue(-1));
314  $mockExtensionList = [
315  'enetcache' => [
316  'installed' => true,
317  'terObject' => $mockTerObject
318  ],
319  ];
321  $mockListUtility = $this->getMockBuilder(ListUtility::class)->getMock();
322  $mockListUtility
323  ->expects($this->once())
324  ->method('getAvailableAndInstalledExtensionsWithAdditionalInformation')
325  ->will($this->returnValue($mockExtensionList));
326 
328  $mockReport = $this->getAccessibleMock(ExtensionStatus::class, ['dummy'], [], '', false);
329  $mockReport->_set('objectManager', $this->mockObjectManager);
330  $statusMock = $this->createMock(Status::class);
331  $this->mockObjectManager
332  ->expects($this->at(0))
333  ->method('get')
334  ->with($this->anything(), $this->anything(), $this->anything(), $this->anything(), ‪Status::ERROR)
335  ->will($this->returnValue($statusMock));
336  $mockReport->_set('listUtility', $mockListUtility);
337  $mockReport->_set('languageService', $this->mockLanguageService);
338 
339  $result = $mockReport->_call('getSecurityStatusOfExtensions');
341  $loadedResult = $result->loaded;
342  $this->assertSame($statusMock, $loadedResult);
343  }
344 
349  {
351  $mockTerObject = $this->getMockBuilder(Extension::class)->getMock();
352  $mockTerObject
353  ->expects($this->any())
354  ->method('getVersion')
355  ->will($this->returnValue('1.0.6'));
356  $mockTerObject
357  ->expects($this->atLeastOnce())
358  ->method('getReviewState')
359  ->will($this->returnValue(0));
360  $mockExtensionList = [
361  'enetcache' => [
362  'terObject' => $mockTerObject
363  ],
364  ];
366  $mockListUtility = $this->getMockBuilder(ListUtility::class)->getMock();
367  $mockListUtility
368  ->expects($this->once())
369  ->method('getAvailableAndInstalledExtensionsWithAdditionalInformation')
370  ->will($this->returnValue($mockExtensionList));
371 
373  $mockReport = $this->getAccessibleMock(ExtensionStatus::class, ['dummy'], [], '', false);
374  $mockReport->_set('objectManager', $this->mockObjectManager);
375  $statusMock = $this->createMock(Status::class);
376  $this->mockObjectManager
377  ->expects($this->at(1))
378  ->method('get')
379  ->with($this->anything(), $this->anything(), $this->anything(), $this->anything(), ‪Status::OK)
380  ->will($this->returnValue($statusMock));
381  $mockReport->_set('listUtility', $mockListUtility);
382  $mockReport->_set('languageService', $this->mockLanguageService);
383 
384  $result = $mockReport->_call('getSecurityStatusOfExtensions');
386  $loadedResult = $result->existing;
387  $this->assertSame($statusMock, $loadedResult);
388  }
389 
394  {
396  $mockTerObject = $this->getMockBuilder(Extension::class)->getMock();
397  $mockTerObject
398  ->expects($this->any())
399  ->method('getVersion')
400  ->will($this->returnValue('1.0.6'));
401  $mockTerObject
402  ->expects($this->atLeastOnce())
403  ->method('getReviewState')
404  ->will($this->returnValue(-1));
405  $mockExtensionList = [
406  'enetcache' => [
407  'terObject' => $mockTerObject
408  ],
409  ];
411  $mockListUtility = $this->getMockBuilder(ListUtility::class)->getMock();
412  $mockListUtility
413  ->expects($this->once())
414  ->method('getAvailableAndInstalledExtensionsWithAdditionalInformation')
415  ->will($this->returnValue($mockExtensionList));
416 
418  $mockReport = $this->getAccessibleMock(ExtensionStatus::class, ['dummy'], [], '', false);
419  $mockReport->_set('objectManager', $this->mockObjectManager);
420  $statusMock = $this->createMock(Status::class);
421  $this->mockObjectManager
422  ->expects($this->at(1))
423  ->method('get')
424  ->with($this->anything(), $this->anything(), $this->anything(), $this->anything(), ‪Status::WARNING)
425  ->will($this->returnValue($statusMock));
426  $mockReport->_set('listUtility', $mockListUtility);
427  $mockReport->_set('languageService', $this->mockLanguageService);
428 
429  $result = $mockReport->_call('getSecurityStatusOfExtensions');
431  $loadedResult = $result->existing;
432  $this->assertSame($statusMock, $loadedResult);
433  }
434 
439  {
441  $mockTerObject = $this->getMockBuilder(Extension::class)->getMock();
442  $mockTerObject
443  ->expects($this->any())
444  ->method('getVersion')
445  ->will($this->returnValue('1.0.6'));
446  $mockTerObject
447  ->expects($this->atLeastOnce())
448  ->method('getReviewState')
449  ->will($this->returnValue(0));
450  $mockExtensionList = [
451  'enetcache' => [
452  'installed' => true,
453  'terObject' => $mockTerObject
454  ],
455  ];
457  $mockListUtility = $this->getMockBuilder(ListUtility::class)->getMock();
458  $mockListUtility
459  ->expects($this->once())
460  ->method('getAvailableAndInstalledExtensionsWithAdditionalInformation')
461  ->will($this->returnValue($mockExtensionList));
462 
464  $mockReport = $this->getAccessibleMock(ExtensionStatus::class, ['dummy'], [], '', false);
465  $mockReport->_set('objectManager', $this->mockObjectManager);
466  $statusMock = $this->createMock(Status::class);
467  $this->mockObjectManager
468  ->expects($this->at(2))
469  ->method('get')
470  ->with($this->anything(), $this->anything(), $this->anything(), $this->anything(), ‪Status::OK)
471  ->will($this->returnValue($statusMock));
472  $mockReport->_set('listUtility', $mockListUtility);
473  $mockReport->_set('languageService', $this->mockLanguageService);
474 
475  $result = $mockReport->_call('getSecurityStatusOfExtensions');
477  $loadedResult = $result->loadedoutdated;
478  $this->assertSame($statusMock, $loadedResult);
479  }
480 
485  {
487  $mockTerObject = $this->getMockBuilder(Extension::class)->getMock();
488  $mockTerObject
489  ->expects($this->any())
490  ->method('getVersion')
491  ->will($this->returnValue('1.0.6'));
492  $mockTerObject
493  ->expects($this->atLeastOnce())
494  ->method('getReviewState')
495  ->will($this->returnValue(-2));
496  $mockExtensionList = [
497  'enetcache' => [
498  'installed' => true,
499  'terObject' => $mockTerObject
500  ],
501  ];
503  $mockListUtility = $this->getMockBuilder(ListUtility::class)->getMock();
504  $mockListUtility
505  ->expects($this->once())
506  ->method('getAvailableAndInstalledExtensionsWithAdditionalInformation')
507  ->will($this->returnValue($mockExtensionList));
508 
510  $mockReport = $this->getAccessibleMock(ExtensionStatus::class, ['dummy'], [], '', false);
511  $mockReport->_set('objectManager', $this->mockObjectManager);
512  $statusMock = $this->createMock(Status::class);
513  $this->mockObjectManager
514  ->expects($this->at(2))
515  ->method('get')
516  ->with($this->anything(), $this->anything(), $this->anything(), $this->anything(), ‪Status::WARNING)
517  ->will($this->returnValue($statusMock));
518  $mockReport->_set('listUtility', $mockListUtility);
519  $mockReport->_set('languageService', $this->mockLanguageService);
520 
521  $result = $mockReport->_call('getSecurityStatusOfExtensions');
523  $loadedResult = $result->loadedoutdated;
524  $this->assertSame($statusMock, $loadedResult);
525  }
526 
531  {
533  $mockTerObject = $this->getMockBuilder(Extension::class)->getMock();
534  $mockTerObject
535  ->expects($this->any())
536  ->method('getVersion')
537  ->will($this->returnValue('1.0.6'));
538  $mockTerObject
539  ->expects($this->atLeastOnce())
540  ->method('getReviewState')
541  ->will($this->returnValue(0));
542  $mockExtensionList = [
543  'enetcache' => [
544  'terObject' => $mockTerObject
545  ],
546  ];
548  $mockListUtility = $this->getMockBuilder(ListUtility::class)->getMock();
549  $mockListUtility
550  ->expects($this->once())
551  ->method('getAvailableAndInstalledExtensionsWithAdditionalInformation')
552  ->will($this->returnValue($mockExtensionList));
553 
555  $mockReport = $this->getAccessibleMock(ExtensionStatus::class, ['dummy'], [], '', false);
556  $mockReport->_set('objectManager', $this->mockObjectManager);
557  $statusMock = $this->createMock(Status::class);
558  $this->mockObjectManager
559  ->expects($this->at(3))
560  ->method('get')
561  ->with($this->anything(), $this->anything(), $this->anything(), $this->anything(), ‪Status::OK)
562  ->will($this->returnValue($statusMock));
563  $mockReport->_set('listUtility', $mockListUtility);
564  $mockReport->_set('languageService', $this->mockLanguageService);
565 
566  $result = $mockReport->_call('getSecurityStatusOfExtensions');
568  $loadedResult = $result->existingoutdated;
569  $this->assertSame($statusMock, $loadedResult);
570  }
571 
576  {
578  $mockTerObject = $this->getMockBuilder(Extension::class)->getMock();
579  $mockTerObject
580  ->expects($this->any())
581  ->method('getVersion')
582  ->will($this->returnValue('1.0.6'));
583  $mockTerObject
584  ->expects($this->atLeastOnce())
585  ->method('getReviewState')
586  ->will($this->returnValue(-2));
587  $mockExtensionList = [
588  'enetcache' => [
589  'terObject' => $mockTerObject
590  ],
591  ];
593  $mockListUtility = $this->getMockBuilder(ListUtility::class)->getMock();
594  $mockListUtility
595  ->expects($this->once())
596  ->method('getAvailableAndInstalledExtensionsWithAdditionalInformation')
597  ->will($this->returnValue($mockExtensionList));
598 
600  $mockReport = $this->getAccessibleMock(ExtensionStatus::class, ['dummy'], [], '', false);
601  $mockReport->_set('objectManager', $this->mockObjectManager);
602  $statusMock = $this->createMock(Status::class);
603  $this->mockObjectManager
604  ->expects($this->at(3))
605  ->method('get')
606  ->with($this->anything(), $this->anything(), $this->anything(), $this->anything(), ‪Status::WARNING)
607  ->will($this->returnValue($statusMock));
608  $mockReport->_set('listUtility', $mockListUtility);
609  $mockReport->_set('languageService', $this->mockLanguageService);
610 
611  $result = $mockReport->_call('getSecurityStatusOfExtensions');
613  $loadedResult = $result->existingoutdated;
614  $this->assertSame($statusMock, $loadedResult);
615  }
616 }
‪TYPO3\CMS\Reports\StatusProviderInterface
Definition: StatusProviderInterface.php:21
‪TYPO3\CMS\Extensionmanager\Tests\Unit\Report\ExtensionStatusTest\getStatusReturnArrayContainsInstancesOfReportsStatusStatus
‪getStatusReturnArrayContainsInstancesOfReportsStatusStatus()
Definition: ExtensionStatusTest.php:95
‪TYPO3\CMS\Extensionmanager\Tests\Unit\Report\ExtensionStatusTest\getSecurityStatusOfExtensionsReturnsErrorForExistingExtensionIfOutdatedExtensionExists
‪getSecurityStatusOfExtensionsReturnsErrorForExistingExtensionIfOutdatedExtensionExists()
Definition: ExtensionStatusTest.php:572
‪TYPO3\CMS\Extensionmanager\Tests\Unit\Report\ExtensionStatusTest\getStatusReturnArrayContainsFiveEntries
‪getStatusReturnArrayContainsFiveEntries()
Definition: ExtensionStatusTest.php:83
‪TYPO3\CMS\Extensionmanager\Tests\Unit\Report\ExtensionStatusTest\extensionStatusImplementsStatusProviderInterface
‪extensionStatusImplementsStatusProviderInterface()
Definition: ExtensionStatusTest.php:62
‪TYPO3\CMS\Extensionmanager\Domain\Model\Extension
Definition: Extension.php:24
‪TYPO3\CMS\Extensionmanager\Tests\Unit\Report\ExtensionStatusTest\getSecurityStatusOfExtensionsReturnsErrorForLoadedExtensionIfOutdatedExtensionIsLoaded
‪getSecurityStatusOfExtensionsReturnsErrorForLoadedExtensionIfOutdatedExtensionIsLoaded()
Definition: ExtensionStatusTest.php:481
‪TYPO3\CMS\Extensionmanager\Tests\Unit\Report\ExtensionStatusTest\getMainRepositoryStatusReturnsErrorStatusIfRepositoryIsNotFound
‪getMainRepositoryStatusReturnsErrorStatusIfRepositoryIsNotFound()
Definition: ExtensionStatusTest.php:159
‪TYPO3\CMS\Extensionmanager\Tests\Unit\Report\ExtensionStatusTest\getSecurityStatusOfExtensionsReturnsErrorForExistingExtensionIfInsecureExtensionExists
‪getSecurityStatusOfExtensionsReturnsErrorForExistingExtensionIfInsecureExtensionExists()
Definition: ExtensionStatusTest.php:390
‪TYPO3\CMS\Reports\Status\NOTICE
‪const NOTICE
Definition: Status.php:23
‪TYPO3\CMS\Reports\Status\ERROR
‪const ERROR
Definition: Status.php:27
‪TYPO3\CMS\Extensionmanager\Tests\Unit\Report\ExtensionStatusTest\$mockRepositoryRepository
‪RepositoryRepository $mockRepositoryRepository
Definition: ExtensionStatusTest.php:40
‪TYPO3\CMS\Extensionmanager\Domain\Repository\RepositoryRepository
Definition: RepositoryRepository.php:22
‪TYPO3\CMS\Extensionmanager\Tests\Unit\Report
Definition: ExtensionStatusTest.php:3
‪TYPO3\CMS\Extensionmanager\Utility\ListUtility
Definition: ListUtility.php:35
‪TYPO3\CMS\Extensionmanager\Tests\Unit\Report\ExtensionStatusTest\getSecurityStatusOfExtensionsReturnsOkForExistingExtensionIfNoOutdatedExtensionExists
‪getSecurityStatusOfExtensionsReturnsOkForExistingExtensionIfNoOutdatedExtensionExists()
Definition: ExtensionStatusTest.php:527
‪TYPO3\CMS\Extbase\Object\ObjectManagerInterface
Definition: ObjectManagerInterface.php:23
‪TYPO3\CMS\Extensionmanager\Tests\Unit\Report\ExtensionStatusTest\getStatusReturnsArray
‪getStatusReturnsArray()
Definition: ExtensionStatusTest.php:71
‪TYPO3\CMS\Reports\Status\OK
‪const OK
Definition: Status.php:25
‪TYPO3\CMS\Reports\Status
Definition: Status.php:22
‪TYPO3\CMS\Extensionmanager\Tests\Unit\Report\ExtensionStatusTest\getMainRepositoryStatusReturnsOkIfUpdatedLessThanSevenDaysAgo
‪getMainRepositoryStatusReturnsOkIfUpdatedLessThanSevenDaysAgo()
Definition: ExtensionStatusTest.php:219
‪TYPO3\CMS\Extensionmanager\Tests\Unit\Report\ExtensionStatusTest
Definition: ExtensionStatusTest.php:33
‪TYPO3\CMS\Extensionmanager\Tests\Unit\Report\ExtensionStatusTest\getStatusCallsGetMainRepositoryStatusForMainRepositoryStatusResult
‪getStatusCallsGetMainRepositoryStatusForMainRepositoryStatusResult()
Definition: ExtensionStatusTest.php:117
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository
Definition: Repository.php:22
‪TYPO3\CMS\Reports\Status\WARNING
‪const WARNING
Definition: Status.php:26
‪TYPO3\CMS\Extensionmanager\Tests\Unit\Report\ExtensionStatusTest\$mockLanguageService
‪LanguageService $mockLanguageService
Definition: ExtensionStatusTest.php:44
‪TYPO3\CMS\Extensionmanager\Tests\Unit\Report\ExtensionStatusTest\getSecurityStatusOfExtensionsReturnsOkForExistingExtensionIfNoInsecureExtensionExists
‪getSecurityStatusOfExtensionsReturnsOkForExistingExtensionIfNoInsecureExtensionExists()
Definition: ExtensionStatusTest.php:345
‪TYPO3\CMS\Extensionmanager\Tests\Unit\Report\ExtensionStatusTest\setUp
‪setUp()
Definition: ExtensionStatusTest.php:49
‪TYPO3\CMS\Extensionmanager\Tests\Unit\Report\ExtensionStatusTest\getMainRepositoryStatusReturnsNoticeIfRepositoryUpdateIsLongerThanSevenDaysAgo
‪getMainRepositoryStatusReturnsNoticeIfRepositoryUpdateIsLongerThanSevenDaysAgo()
Definition: ExtensionStatusTest.php:185
‪TYPO3\CMS\Extensionmanager\Tests\Unit\Report\ExtensionStatusTest\$mockObjectManager
‪ObjectManagerInterface $mockObjectManager
Definition: ExtensionStatusTest.php:36
‪TYPO3\CMS\Extensionmanager\Tests\Unit\Report\ExtensionStatusTest\getSecurityStatusOfExtensionsReturnsErrorForLoadedExtensionIfInsecureExtensionIsLoaded
‪getSecurityStatusOfExtensionsReturnsErrorForLoadedExtensionIfInsecureExtensionIsLoaded()
Definition: ExtensionStatusTest.php:299
‪TYPO3\CMS\Core\Localization\LanguageService
Definition: LanguageService.php:29
‪TYPO3\CMS\Extensionmanager\Tests\Unit\Report\ExtensionStatusTest\getSecurityStatusOfExtensionsReturnsOkForLoadedExtensionIfNoOutdatedExtensionIsLoaded
‪getSecurityStatusOfExtensionsReturnsOkForLoadedExtensionIfNoOutdatedExtensionIsLoaded()
Definition: ExtensionStatusTest.php:435
‪TYPO3\CMS\Extensionmanager\Tests\Unit\Report\ExtensionStatusTest\getSecurityStatusOfExtensionsReturnsOkForLoadedExtensionIfNoInsecureExtensionIsLoaded
‪getSecurityStatusOfExtensionsReturnsOkForLoadedExtensionIfNoInsecureExtensionIsLoaded()
Definition: ExtensionStatusTest.php:253
‪TYPO3\CMS\Extensionmanager\Report\ExtensionStatus
Definition: ExtensionStatus.php:22