Skip to content

Commit 46462c4

Browse files
MAGETWO-63231: Implementation
1 parent 73dfa2c commit 46462c4

File tree

3 files changed

+3
-17
lines changed

3 files changed

+3
-17
lines changed

app/code/Magento/Theme/Model/Source/InitialThemeSource.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ public function __construct(
6464
/**
6565
* Retrieves configuration data array.
6666
* Example:
67-
* ```
67+
*
68+
* ```php
6869
* ['Magento/backend' =>
6970
* [
7071
* 'parent_id' => NULL,
7172
* 'theme_path' => 'Magento/backend',
7273
* 'theme_title' => 'Magento 2 backend',
73-
* 'preview_image' => NULL,
7474
* 'is_featured' => '0',
7575
* 'area' => 'adminhtml',
7676
* 'type' => '0',
@@ -93,7 +93,7 @@ public function get($path = '')
9393
$themes = [];
9494

9595
foreach ($rawThemes as $themeRow) {
96-
unset($themeRow['theme_id']);
96+
unset($themeRow['theme_id'], $themeRow['preview_image']);
9797

9898
$themes[$themeRow['code']] = $themeRow;
9999

app/code/Magento/Theme/Test/Unit/Model/Source/InitialThemeSourceTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ public function testGet()
127127
'parent_id' => null,
128128
'theme_path' => 'Magento/backend',
129129
'theme_title' => 'Magento 2 backend',
130-
'preview_image' => null,
131130
'is_featured' => '0',
132131
'area' => 'adminhtml',
133132
'type' => '0',
@@ -138,7 +137,6 @@ public function testGet()
138137
'parent_id' => null,
139138
'theme_path' => 'Magento/blank',
140139
'theme_title' => 'Magento Blank',
141-
'preview_image' => 'preview_image_587df6c4cc9c2.jpeg',
142140
'is_featured' => '0',
143141
'area' => 'frontend',
144142
'type' => '0',
@@ -149,7 +147,6 @@ public function testGet()
149147
'parent_id' => '2',
150148
'theme_path' => 'Magento/luma',
151149
'theme_title' => 'Magento Luma',
152-
'preview_image' => 'preview_image_587df6c4e073d.jpeg',
153150
'is_featured' => '0',
154151
'area' => 'frontend',
155152
'type' => '0',
@@ -165,7 +162,6 @@ public function testGet()
165162
'parent_id' => null,
166163
'theme_path' => 'Magento/backend',
167164
'theme_title' => 'Magento 2 backend',
168-
'preview_image' => null,
169165
'is_featured' => '0',
170166
'area' => 'adminhtml',
171167
'type' => '0',
@@ -175,7 +171,6 @@ public function testGet()
175171
'parent_id' => null,
176172
'theme_path' => 'Magento/blank',
177173
'theme_title' => 'Magento Blank',
178-
'preview_image' => 'preview_image_587df6c4cc9c2.jpeg',
179174
'is_featured' => '0',
180175
'area' => 'frontend',
181176
'type' => '0',
@@ -185,7 +180,6 @@ public function testGet()
185180
'parent_id' => 'Magento/blank',
186181
'theme_path' => 'Magento/luma',
187182
'theme_title' => 'Magento Luma',
188-
'preview_image' => 'preview_image_587df6c4e073d.jpeg',
189183
'is_featured' => '0',
190184
'area' => 'frontend',
191185
'type' => '0',

dev/tests/integration/testsuite/Magento/Deploy/Console/Command/App/ApplicationDumpCommandTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,11 @@ private function validateSystemSection(array $config)
101101
*/
102102
private function validateThemesSection(array $config)
103103
{
104-
// Clearing the dynamic fields.
105-
foreach (array_keys($config['themes']) as $themeKey) {
106-
$config['themes'][$themeKey]['preview_image'] = null;
107-
}
108-
109104
$this->assertEquals(
110105
[
111106
'parent_id' => null,
112107
'theme_path' => 'Magento/backend',
113108
'theme_title' => 'Magento 2 backend',
114-
'preview_image' => null,
115109
'is_featured' => '0',
116110
'area' => 'adminhtml',
117111
'type' => '0',
@@ -124,7 +118,6 @@ private function validateThemesSection(array $config)
124118
'parent_id' => null,
125119
'theme_path' => 'Magento/blank',
126120
'theme_title' => 'Magento Blank',
127-
'preview_image' => null,
128121
'is_featured' => '0',
129122
'area' => 'frontend',
130123
'type' => '0',
@@ -137,7 +130,6 @@ private function validateThemesSection(array $config)
137130
'parent_id' => 'Magento/blank',
138131
'theme_path' => 'Magento/luma',
139132
'theme_title' => 'Magento Luma',
140-
'preview_image' => null,
141133
'is_featured' => '0',
142134
'area' => 'frontend',
143135
'type' => '0',

0 commit comments

Comments
 (0)