2 namespace TYPO3\CMS\Backend\Tests\Unit\Sprite;
33 $this->assertArrayHasKey(
'tcarecords--',
$GLOBALS[
'TBE_STYLES'][
'spritemanager'][
'singleIcons']);
42 $this->assertEquals(
'',
$GLOBALS[
'TBE_STYLES'][
'spritemanager'][
'singleIcons'][
'tcarecords--']);
50 $table =
'tt_content';
51 $type =
'contains-news';
53 $this->assertArrayHasKey(
'tcarecords-' . $table .
'-' . $type,
$GLOBALS[
'TBE_STYLES'][
'spritemanager'][
'singleIcons']);
61 $imagePath =
'path/to/my-icon.png';
62 $table =
'tt_content';
63 $type =
'contains-news';
65 $this->assertEquals($imagePath,
$GLOBALS[
'TBE_STYLES'][
'spritemanager'][
'singleIcons'][
'tcarecords-' . $table .
'-' . $type]);
77 $imagePath =
'path/to/my-icon.png';
78 $icons = array($type => $imagePath);
79 $extensionKey =
'dummy';
81 $this->assertArrayHasKey(
'extensions-' . $extensionKey .
'-' . $type,
$GLOBALS[
'TBE_STYLES'][
'spritemanager'][
'singleIcons']);
90 $imagePath =
'path/to/my-icon.png';
91 $icons = array($type => $imagePath);
92 $extensionKey =
'dummy';
94 $this->assertEquals($imagePath,
$GLOBALS[
'TBE_STYLES'][
'spritemanager'][
'singleIcons'][
'extensions-' . $extensionKey .
'-' . $type]);
102 $type =
'contains-news';
103 $imagePath =
'path/to/my-icon.png';
104 $icons = array($type => $imagePath);
105 $extensionKey =
'dummy';
107 $this->assertArrayHasKey(
'extensions-' . $extensionKey .
'-' . $type,
$GLOBALS[
'TBE_STYLES'][
'spritemanager'][
'singleIcons']);
115 $type =
'contains-news';
116 $imagePath =
'path/to/my-icon.png';
117 $icons = array($type => $imagePath);
118 $extensionKey =
'dummy';
120 $this->assertEquals($imagePath,
$GLOBALS[
'TBE_STYLES'][
'spritemanager'][
'singleIcons'][
'extensions-' . $extensionKey .
'-' . $type]);