@@ -112,10 +112,16 @@ public function testGetByFullPath()
112
112
]);
113
113
\Magento \Framework \App \ObjectManager::setInstance ($ objectManagerMock );
114
114
115
- // Assertion for first time load
116
- $ this ->assertSame ($ this ->theme , $ this ->themeProvider ->getThemeByFullPath (self ::THEME_PATH ));
117
- // Assertion for loading from local cache
118
- $ this ->assertSame ($ this ->theme , $ this ->themeProvider ->getThemeByFullPath (self ::THEME_PATH ));
115
+ $ this ->assertSame (
116
+ $ this ->theme ,
117
+ $ this ->themeProvider ->getThemeByFullPath (self ::THEME_PATH ),
118
+ 'Unable to load Theme '
119
+ );
120
+ $ this ->assertSame (
121
+ $ this ->theme ,
122
+ $ this ->themeProvider ->getThemeByFullPath (self ::THEME_PATH ),
123
+ 'Unable to load Theme from object cache '
124
+ );
119
125
}
120
126
121
127
public function testGetByFullPathWithCache ()
@@ -155,10 +161,16 @@ public function testGetByFullPathWithCache()
155
161
->with ('theme ' . self ::THEME_PATH )
156
162
->willReturn ($ serializedTheme );
157
163
158
- // Assertion for load from cache
159
- $ this ->assertSame ($ this ->theme , $ this ->themeProvider ->getThemeByFullPath (self ::THEME_PATH ));
160
- // Assertion for load from object cache
161
- $ this ->assertSame ($ this ->theme , $ this ->themeProvider ->getThemeByFullPath (self ::THEME_PATH ));
164
+ $ this ->assertSame (
165
+ $ this ->theme ,
166
+ $ this ->themeProvider ->getThemeByFullPath (self ::THEME_PATH ),
167
+ 'Unable to load Theme from application cache '
168
+ );
169
+ $ this ->assertSame (
170
+ $ this ->theme ,
171
+ $ this ->themeProvider ->getThemeByFullPath (self ::THEME_PATH ),
172
+ 'Unable to load Theme from object cache '
173
+ );
162
174
}
163
175
164
176
public function testGetById ()
@@ -185,10 +197,16 @@ public function testGetById()
185
197
->with ($ themeArray )
186
198
->willReturn ('{"theme_data":"theme_data"} ' );
187
199
188
- // Assertion for initial load
189
- $ this ->assertSame ($ this ->theme , $ this ->themeProvider ->getThemeById (self ::THEME_ID ));
190
- // Assertion for load from object cache
191
- $ this ->assertSame ($ this ->theme , $ this ->themeProvider ->getThemeById (self ::THEME_ID ));
200
+ $ this ->assertSame (
201
+ $ this ->theme ,
202
+ $ this ->themeProvider ->getThemeById (self ::THEME_ID ),
203
+ 'Unable to load Theme '
204
+ );
205
+ $ this ->assertSame (
206
+ $ this ->theme ,
207
+ $ this ->themeProvider ->getThemeById (self ::THEME_ID ),
208
+ 'Unable to load Theme from object cache '
209
+ );
192
210
}
193
211
194
212
public function testGetByIdWithCache ()
@@ -211,10 +229,16 @@ public function testGetByIdWithCache()
211
229
->method ('create ' )
212
230
->willReturn ($ this ->theme );
213
231
214
- // Assertion for initial load from cache
215
- $ this ->assertSame ($ this ->theme , $ this ->themeProvider ->getThemeById (self ::THEME_ID ));
216
- // Assertion for load from object cache
217
- $ this ->assertSame ($ this ->theme , $ this ->themeProvider ->getThemeById (self ::THEME_ID ));
232
+ $ this ->assertSame (
233
+ $ this ->theme ,
234
+ $ this ->themeProvider ->getThemeById (self ::THEME_ID ),
235
+ 'Unable to load Theme from application cache '
236
+ );
237
+ $ this ->assertSame (
238
+ $ this ->theme ,
239
+ $ this ->themeProvider ->getThemeById (self ::THEME_ID ),
240
+ 'Unable to load Theme from object cache '
241
+ );
218
242
}
219
243
220
244
public function testGetThemeCustomizations ()
0 commit comments