‪TYPO3CMS  11.5
IconFactoryTest.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 
20 use Prophecy\PhpUnit\ProphecyTrait;
29 use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase;
30 
31 class ‪IconFactoryTest extends FunctionalTestCase
32 {
33  use ProphecyTrait;
34 
36  protected string ‪$notRegisteredIconIdentifier = 'my-super-unregistered-identifier';
37  protected string ‪$registeredIconIdentifier = 'actions-close';
38  protected string ‪$registeredSpinningIconIdentifier = 'spinning-icon';
39 
43  protected array ‪$mockRecord = [
44  'header' => 'dummy content header',
45  'uid' => '1',
46  'pid' => '1',
47  'image' => '',
48  'hidden' => '0',
49  'starttime' => '0',
50  'endtime' => '0',
51  'fe_group' => '',
52  'CType' => 'text',
53  't3ver_state' => '0',
54  't3ver_wsid' => '0',
55  'sys_language_uid' => '0',
56  'l18n_parent' => '0',
57  'subheader' => '',
58  'bodytext' => '',
59  ];
60 
61  protected function ‪setUp(): void
62  {
63  parent::setUp();
64  $this->subject = GeneralUtility::getContainer()->get(IconFactory::class);
65  }
66 
70  public function ‪differentSizesDataProvider(): array
71  {
72  return [
73  ['size ' . ‪Icon::SIZE_SMALL => ['input' => ‪Icon::SIZE_SMALL, 'expected' => ‪Icon::SIZE_SMALL]],
74  ['size ' . ‪Icon::SIZE_DEFAULT => ['input' => ‪Icon::SIZE_DEFAULT, 'expected' => ‪Icon::SIZE_DEFAULT]],
75  ['size ' . ‪Icon::SIZE_LARGE => ['input' => ‪Icon::SIZE_LARGE, 'expected' => ‪Icon::SIZE_LARGE]],
76  ];
77  }
78 
83  {
84  self::assertStringContainsString(
85  '<span class="icon-markup">',
86  $this->subject->getIcon($this->registeredIconIdentifier)->render()
87  );
88  }
89 
94  {
95  self::assertStringContainsString(
96  '<span class="t3js-icon icon icon-size-default icon-state-default icon-actions-close" data-identifier="actions-close">',
97  $this->subject->getIcon($this->registeredIconIdentifier)->render()
98  );
99  }
100 
106  {
107  self::assertStringContainsString(
108  '<span class="t3js-icon icon icon-size-' . $size['expected'] . ' icon-state-default icon-actions-close" data-identifier="actions-close">',
109  $this->subject->getIcon($this->registeredIconIdentifier, $size['input'])->render()
110  );
111  }
112 
118  {
119  self::assertStringContainsString(
120  '<span class="icon-overlay icon-overlay-readonly">',
121  $this->subject->getIcon($this->registeredIconIdentifier, $size['input'], 'overlay-readonly')->render()
122  );
123  }
124 
129  {
130  self::assertStringContainsString(
131  '<span class="t3js-icon icon icon-size-default icon-state-default icon-default-not-found" data-identifier="default-not-found">',
132  $this->subject->getIcon($this->notRegisteredIconIdentifier)->render()
133  );
134  }
135 
141  {
142  self::assertStringContainsString(
143  '<span class="t3js-icon icon icon-size-' . $size['expected'] . ' icon-state-default icon-default-not-found" data-identifier="default-not-found">',
144  $this->subject->getIcon($this->notRegisteredIconIdentifier, $size['input'])->render()
145  );
146  }
147 
152  {
153  $iconRegistry = GeneralUtility::getContainer()->get(IconRegistry::class);
154  $iconRegistry->registerIcon(
155  $this->registeredSpinningIconIdentifier,
156  FontawesomeIconProvider::class,
157  [
158  'name' => 'times',
159  'spinning' => true,
160  ]
161  );
162  self::assertStringContainsString(
163  '<span class="t3js-icon icon icon-size-default icon-state-default icon-' . $this->registeredSpinningIconIdentifier . ' icon-spin" data-identifier="spinning-icon">',
164  $this->subject->getIcon($this->registeredSpinningIconIdentifier)->render()
165  );
166  }
167 
173  {
174  self::assertStringContainsString(
175  '<span class="icon-overlay icon-overlay-readonly">',
176  $this->subject->getIcon($this->notRegisteredIconIdentifier, $size['input'], 'overlay-readonly')->render()
177  );
178  }
179 
183  public function ‪getIconThrowsExceptionIfInvalidSizeIsGiven(): void
184  {
185  $this->expectException(\InvalidArgumentException::class);
186  $this->subject->getIcon($this->registeredIconIdentifier, 'foo')->render();
187  }
188 
189  //
190  // Tests for getIconForFileExtension
191  //
192 
199  {
200  self::assertStringContainsString(
201  '<span class="t3js-icon icon icon-size-default icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other">',
202  $this->subject->getIconForFileExtension('')->render()
203  );
204  }
205 
212  {
213  self::assertStringContainsString(
214  '<span class="t3js-icon icon icon-size-default icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other">',
215  $this->subject->getIconForFileExtension('foo')->render()
216  );
217  }
218 
224  public function ‪getIconForFileWithFileTypePdfReturnsPdfIcon(): void
225  {
226  self::assertStringContainsString(
227  '<span class="t3js-icon icon icon-size-default icon-state-default icon-mimetypes-pdf" data-identifier="mimetypes-pdf">',
228  $this->subject->getIconForFileExtension('pdf')->render()
229  );
230  }
231 
237  public function ‪getIconForFileWithFileTypePngReturnsPngIcon(): void
238  {
239  self::assertStringContainsString(
240  '<span class="t3js-icon icon icon-size-default icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image">',
241  $this->subject->getIconForFileExtension('png')->render()
242  );
243  }
244 
249  {
250  $resourceProphecy = $this->prophesize(File::class);
251  $resourceProphecy->isMissing()->willReturn(false);
252  $resourceProphecy->getExtension()->willReturn('pdf');
253  $resourceProphecy->getMimeType()->willReturn('');
254 
255  self::assertStringContainsString(
256  '<span class="t3js-icon icon icon-size-default icon-state-default icon-mimetypes-pdf" data-identifier="mimetypes-pdf">',
257  $this->subject->getIconForResource($resourceProphecy->reveal())->render()
258  );
259  }
260 
262  // Tests concerning getIconForResource
264 
270  {
271  $fileObject = $this->‪getTestSubjectFileObject('');
272  $result = $this->subject->getIconForResource($fileObject)->render();
273  self::assertStringContainsString('<span class="t3js-icon icon icon-size-default icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other">', $result);
274  }
275 
282  {
283  $fileObject = $this->‪getTestSubjectFileObject('foo');
284  $result = $this->subject->getIconForResource($fileObject)->render();
285  self::assertStringContainsString('<span class="t3js-icon icon icon-size-default icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other">', $result);
286  }
287 
293  public function ‪getIconForResourceWithPdfReturnsPdfIcon(): void
294  {
295  $fileObject = $this->‪getTestSubjectFileObject('pdf');
296  $result = $this->subject->getIconForResource($fileObject)->render();
297  self::assertStringContainsString('<span class="t3js-icon icon icon-size-default icon-state-default icon-mimetypes-pdf" data-identifier="mimetypes-pdf">', $result);
298  }
299 
306  {
307  $fileObject = $this->‪getTestSubjectFileObject('pdf', 'application/pdf');
308  $result = $this->subject->getIconForResource($fileObject)->render();
309  self::assertStringContainsString('<span class="t3js-icon icon icon-size-default icon-state-default icon-mimetypes-pdf" data-identifier="mimetypes-pdf">', $result);
310  }
311 
318  {
319  $fileObject = $this->‪getTestSubjectFileObject('custom', 'image/my-custom-extension');
320  $result = $this->subject->getIconForResource($fileObject)->render();
321  self::assertStringContainsString('<span class="t3js-icon icon icon-size-default icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image">', $result);
322  }
323 
329  public function ‪getIconForResourceWithPngFileReturnsIcon(): void
330  {
331  $fileObject = $this->‪getTestSubjectFileObject('png', 'image/png');
332  $result = $this->subject->getIconForResource($fileObject)->render();
333  self::assertStringContainsString('<span class="t3js-icon icon icon-size-default icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image">', $result);
334  }
335 
342  {
343  $folderObject = $this->‪getTestSubjectFolderObject('/test');
344  $result = $this->subject->getIconForResource($folderObject)->render();
345  self::assertStringContainsString('<span class="t3js-icon icon icon-size-default icon-state-default icon-apps-filetree-folder-default" data-identifier="apps-filetree-folder-default">', $result);
346  }
347 
354  {
355  $folderObject = $this->‪getTestSubjectFolderObject('/test');
356  $result = $this->subject->getIconForResource($folderObject, ‪Icon::SIZE_DEFAULT, null, ['folder-open' => true])->render();
357  self::assertStringContainsString('<span class="t3js-icon icon icon-size-default icon-state-default icon-apps-filetree-folder-opened" data-identifier="apps-filetree-folder-opened">', $result);
358  }
359 
366  {
367  $folderObject = $this->‪getTestSubjectFolderObject('/');
368  $result = $this->subject->getIconForResource($folderObject)->render();
369  self::assertStringContainsString('<span class="t3js-icon icon icon-size-default icon-state-default icon-apps-filetree-root" data-identifier="apps-filetree-root">', $result);
370  }
371 
378  {
379  $folderObject = $this->‪getTestSubjectFolderObject('/mount');
380  $result = $this->subject->getIconForResource($folderObject, ‪Icon::SIZE_DEFAULT, null, ['mount-root' => true])->render();
381  self::assertStringContainsString('<span class="t3js-icon icon icon-size-default icon-state-default icon-apps-filetree-mount" data-identifier="apps-filetree-mount">', $result);
382  }
383 
384  //
385  // Test for getIconForRecord
386  //
387 
394  {
395  ‪$GLOBALS['TCA']['']['ctrl'] = [];
396  self::assertStringContainsString(
397  '<span class="t3js-icon icon icon-size-default icon-state-default icon-default-not-found" data-identifier="default-not-found">',
398  $this->subject->getIconForRecord('', [])->render()
399  );
400  }
401 
408  {
409  ‪$GLOBALS['TCA'] = [
410  'tt_content' => [
411  'ctrl' => [
412  'typeicon_column' => 'CType',
413  'typeicon_classes' => [
414  'default' => 'mimetypes-x-content-text',
415  ],
416  ],
417  ],
418  ];
419  $result = $this->subject->getIconForRecord('tt_content', [])->render();
420  self::assertStringContainsString('<span class="t3js-icon icon icon-size-default icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text">', $result);
421  }
422 
429  {
430  ‪$GLOBALS['TCA'] = [
431  'tt_content' => [
432  'ctrl' => [
433  'typeicon_column' => 'CType',
434  'typeicon_classes' => [
435  'default' => '',
436  'text' => 'mimetypes-x-content-text',
437  ],
438  ],
439  ],
440  ];
441  $result = $this->subject->getIconForRecord('tt_content', $this->mockRecord)->render();
442  self::assertStringContainsString('<span class="t3js-icon icon icon-size-default icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text">', $result);
443  }
444 
451  {
452  ‪$GLOBALS['TCA'] = [
453  'tt_content' => [
454  'ctrl' => [
455  'typeicon_column' => 'CType',
456  'typeicon_classes' => [
457  'default' => '',
458  'list' => 'mimetypes-x-content-plugin',
459  ],
460  ],
461  ],
462  ];
464  ‪$mockRecord['CType'] = 'list';
465  $result = $this->subject->getIconForRecord('tt_content', ‪$mockRecord)->render();
466  self::assertStringContainsString('<span class="t3js-icon icon icon-size-default icon-state-default icon-mimetypes-x-content-plugin" data-identifier="mimetypes-x-content-plugin">', $result);
467  }
468 
476  {
477  ‪$GLOBALS['TCA'] = [
478  'tt_content' => [
479  'ctrl' => [
480  'typeicon_column' => 'CType',
481  'typeicon_classes' => [
482  'default' => '',
483  'list' => 'mimetypes-x-content-plugin',
484  ],
485  ],
486  'columns' => [
487  'list_type' => [
488  'config' => [
489  'items' => [
490  [
491  'Blog example plugin',
492  'pi_blogexample',
494  ],
495  ],
496  ],
497  ],
498  ],
499  ],
500  ];
502  ‪$mockRecord['CType'] = 'list';
503  ‪$mockRecord['list_type'] = 'pi_blogexample';
504  $result = $this->subject->getIconForRecord('tt_content', ‪$mockRecord)->render();
505  self::assertStringContainsString('<span class="t3js-icon icon icon-size-default icon-state-default icon-actions-close" data-identifier="actions-close">', $result);
506  }
507 
514  {
515  ‪$GLOBALS['TCA'] = [
516  'tt_content' => [
517  'ctrl' => [
518  'enablecolumns' => [
519  'disabled' => 'hidden',
520  ],
521  'typeicon_column' => 'CType',
522  'typeicon_classes' => [
523  'default' => '',
524  'text' => 'mimetypes-x-content-text',
525  ],
526  ],
527  ],
528  ];
530  ‪$mockRecord['hidden'] = '1';
531  $result = $this->subject->getIconForRecord('tt_content', ‪$mockRecord)->render();
532  self::assertStringContainsString('<span class="t3js-icon icon icon-size-default icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text">', $result);
533  self::assertStringContainsString('<span class="icon-overlay icon-overlay-hidden">', $result);
534  }
535 
539  protected function ‪getTestSubjectFileObject(string $extension, string $mimeType = ''): File
540  {
541  $mockedStorage = $this->createMock(ResourceStorage::class);
542  $mockedFile = $this->getMockBuilder(File::class)
543  ->setConstructorArgs([['identifier' => '', 'name' => ''], $mockedStorage])
544  ->getMock();
545  $mockedFile->expects(self::atMost(1))->method('getExtension')->willReturn($extension);
546  $mockedFile->expects(self::atLeastOnce())->method('getMimeType')->willReturn($mimeType);
547  return $mockedFile;
548  }
549 
553  protected function ‪getTestSubjectFolderObject(string $identifier): Folder
554  {
555  $mockedStorage = $this->createMock(ResourceStorage::class);
556  $mockedStorage->method('getRootLevelFolder')->willReturn(
557  new Folder($mockedStorage, '/', '/')
558  );
559  $mockedStorage->method('checkFolderActionPermission')->willReturn(true);
560  $mockedStorage->method('isBrowsable')->willReturn(true);
561  return new Folder($mockedStorage, $identifier, $identifier);
562  }
563 }
‪TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL
‪const SIZE_SMALL
Definition: Icon.php:30
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getTestSubjectFolderObject
‪getTestSubjectFolderObject(string $identifier)
Definition: IconFactoryTest.php:552
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconForFileWithFileTypePngReturnsPngIcon
‪getIconForFileWithFileTypePngReturnsPngIcon()
Definition: IconFactoryTest.php:236
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconForResourceWithUnknownFileTypeReturnsOtherIcon
‪getIconForResourceWithUnknownFileTypeReturnsOtherIcon()
Definition: IconFactoryTest.php:280
‪TYPO3\CMS\Core\Imaging\Icon\SIZE_DEFAULT
‪const SIZE_DEFAULT
Definition: Icon.php:35
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\differentSizesDataProvider
‪differentSizesDataProvider()
Definition: IconFactoryTest.php:69
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconForResourceWithFileWithoutExtensionTypeReturnsOtherIcon
‪getIconForResourceWithFileWithoutExtensionTypeReturnsOtherIcon()
Definition: IconFactoryTest.php:268
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\$registeredSpinningIconIdentifier
‪string $registeredSpinningIconIdentifier
Definition: IconFactoryTest.php:37
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconThrowsExceptionIfInvalidSizeIsGiven
‪getIconThrowsExceptionIfInvalidSizeIsGiven()
Definition: IconFactoryTest.php:182
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconForResourceWithMimeTypeApplicationPdfReturnsPdfIcon
‪getIconForResourceWithMimeTypeApplicationPdfReturnsPdfIcon()
Definition: IconFactoryTest.php:304
‪TYPO3\CMS\Core\Imaging\Icon
Definition: Icon.php:26
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconForRecordWithMockRecordWithHiddenFlagReturnsNormalIconAndOverlay
‪getIconForRecordWithMockRecordWithHiddenFlagReturnsNormalIconAndOverlay()
Definition: IconFactoryTest.php:512
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconReturnsNotFoundIconWithCorrectMarkupIfUnregisteredIdentifierIsUsed
‪getIconReturnsNotFoundIconWithCorrectMarkupIfUnregisteredIdentifierIsUsed()
Definition: IconFactoryTest.php:127
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest
Definition: IconFactoryTest.php:32
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconForResourceWithFolderReturnsFolderIcon
‪getIconForResourceWithFolderReturnsFolderIcon()
Definition: IconFactoryTest.php:340
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconForRecordWithMockRecordOfTypePluginReturnsDefaultPluginIcon
‪getIconForRecordWithMockRecordOfTypePluginReturnsDefaultPluginIcon()
Definition: IconFactoryTest.php:449
‪TYPO3\CMS\Core\Imaging\IconFactory
Definition: IconFactory.php:34
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconForRecordWithMockRecordReturnsNormalIcon
‪getIconForRecordWithMockRecordReturnsNormalIcon()
Definition: IconFactoryTest.php:427
‪TYPO3\CMS\Core\Imaging\IconProvider\FontawesomeIconProvider
Definition: FontawesomeIconProvider.php:27
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\$notRegisteredIconIdentifier
‪string $notRegisteredIconIdentifier
Definition: IconFactoryTest.php:35
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\$subject
‪IconFactory $subject
Definition: IconFactoryTest.php:34
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconForRecordWithEmptyRecordReturnsNormalIcon
‪getIconForRecordWithEmptyRecordReturnsNormalIcon()
Definition: IconFactoryTest.php:406
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconForRecordWithNullTableReturnsMissingIcon
‪getIconForRecordWithNullTableReturnsMissingIcon()
Definition: IconFactoryTest.php:392
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconByIdentifierAndSizeReturnsNotFoundIconWithCorrectMarkupIfUnregisteredIdentifierIsUsed
‪getIconByIdentifierAndSizeReturnsNotFoundIconWithCorrectMarkupIfUnregisteredIdentifierIsUsed(array $size)
Definition: IconFactoryTest.php:139
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\$mockRecord
‪array $mockRecord
Definition: IconFactoryTest.php:42
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconForFileWithFileTypePdfReturnsPdfIcon
‪getIconForFileWithFileTypePdfReturnsPdfIcon()
Definition: IconFactoryTest.php:223
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconByIdentifierAndSizeAndWithOverlayReturnsIconWithCorrectOverlayMarkupIfRegisteredIconIdentifierIsUsed
‪getIconByIdentifierAndSizeAndWithOverlayReturnsIconWithCorrectOverlayMarkupIfRegisteredIconIdentifierIsUsed($size)
Definition: IconFactoryTest.php:116
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconReturnsCorrectMarkupIfIconIsRegisteredAsSpinningIcon
‪getIconReturnsCorrectMarkupIfIconIsRegisteredAsSpinningIcon()
Definition: IconFactoryTest.php:150
‪TYPO3\CMS\Core\Resource\Folder
Definition: Folder.php:37
‪TYPO3\CMS\Core\Resource\File
Definition: File.php:24
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\$registeredIconIdentifier
‪string $registeredIconIdentifier
Definition: IconFactoryTest.php:36
‪TYPO3\CMS\Core\Imaging\IconRegistry
Definition: IconRegistry.php:32
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconForFileWithUnknownFileTypeReturnsDefaultFileIcon
‪getIconForFileWithUnknownFileTypeReturnsDefaultFileIcon()
Definition: IconFactoryTest.php:210
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconReturnsIconWithCorrectMarkupWrapperIfRegisteredIconIdentifierIsUsed
‪getIconReturnsIconWithCorrectMarkupWrapperIfRegisteredIconIdentifierIsUsed()
Definition: IconFactoryTest.php:81
‪TYPO3\CMS\Core\Tests\Functional\Imaging
Definition: IconFactoryTest.php:18
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconByIdentifierReturnsIconWithCorrectMarkupIfRegisteredIconIdentifierIsUsed
‪getIconByIdentifierReturnsIconWithCorrectMarkupIfRegisteredIconIdentifierIsUsed()
Definition: IconFactoryTest.php:92
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\setUp
‪setUp()
Definition: IconFactoryTest.php:60
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconByIdentifierAndSizeAndOverlayReturnsNotFoundIconWithCorrectMarkupIfUnregisteredIdentifierIsUsed
‪getIconByIdentifierAndSizeAndOverlayReturnsNotFoundIconWithCorrectMarkupIfUnregisteredIdentifierIsUsed(array $size)
Definition: IconFactoryTest.php:171
‪TYPO3\CMS\Core\Resource\ResourceStorage
Definition: ResourceStorage.php:125
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconForRecordWithMockRecordOfTypePluginReturnsConfiguredPluginIcon
‪getIconForRecordWithMockRecordOfTypePluginReturnsConfiguredPluginIcon()
Definition: IconFactoryTest.php:474
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:25
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getTestSubjectFileObject
‪getTestSubjectFileObject(string $extension, string $mimeType='')
Definition: IconFactoryTest.php:538
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconForFileWithNoFileTypeReturnsDefaultFileIcon
‪getIconForFileWithNoFileTypeReturnsDefaultFileIcon()
Definition: IconFactoryTest.php:197
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconForResourceWithPngFileReturnsIcon
‪getIconForResourceWithPngFileReturnsIcon()
Definition: IconFactoryTest.php:328
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconForResourceWithCustomImageMimeTypeReturnsImageIcon
‪getIconForResourceWithCustomImageMimeTypeReturnsImageIcon()
Definition: IconFactoryTest.php:316
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconByIdentifierAndSizeReturnsIconWithCorrectMarkupIfRegisteredIconIdentifierIsUsed
‪getIconByIdentifierAndSizeReturnsIconWithCorrectMarkupIfRegisteredIconIdentifierIsUsed($size)
Definition: IconFactoryTest.php:104
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:50
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconForResourceWithPdfReturnsPdfIcon
‪getIconForResourceWithPdfReturnsPdfIcon()
Definition: IconFactoryTest.php:292
‪TYPO3\CMS\Core\Imaging\Icon\SIZE_LARGE
‪const SIZE_LARGE
Definition: Icon.php:40
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconForResourceWithRootFolderReturnsRootFolderIcon
‪getIconForResourceWithRootFolderReturnsRootFolderIcon()
Definition: IconFactoryTest.php:364
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconForResourceReturnsCorrectMarkupForFileResources
‪getIconForResourceReturnsCorrectMarkupForFileResources()
Definition: IconFactoryTest.php:247
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconForResourceWithOpenFolderReturnsOpenFolderIcon
‪getIconForResourceWithOpenFolderReturnsOpenFolderIcon()
Definition: IconFactoryTest.php:352
‪TYPO3\CMS\Core\Tests\Functional\Imaging\IconFactoryTest\getIconForResourceWithMountRootReturnsMountFolderIcon
‪getIconForResourceWithMountRootReturnsMountFolderIcon()
Definition: IconFactoryTest.php:376