@@ -79,7 +79,7 @@ class DeployTest extends \PHPUnit\Framework\TestCase
79
79
Options::NO_HTML_MINIFY => false ,
80
80
Options::AREA => ['frontend ' ],
81
81
Options::EXCLUDE_AREA => ['none ' ],
82
- Options::THEME => ['Magento/zoom1 ' , 'Magento/zoom2 ' , 'Magento/zoom3 ' ],
82
+ Options::THEME => ['Magento/zoom1 ' , 'Magento/zoom2 ' , 'Magento/zoom3 ' , ' Vendor/parent ' , ' Vendor/child ' ],
83
83
Options::EXCLUDE_THEME => ['none ' ],
84
84
Options::LANGUAGE => ['en_US ' , 'fr_FR ' , 'pl_PL ' ],
85
85
Options::EXCLUDE_LANGUAGE => ['none ' ],
@@ -148,8 +148,7 @@ public function testDeploy()
148
148
$ this ->assertCssUrlFixerPostProcessor ($ actualFileContent );
149
149
150
150
$ actualFileContent = $ this ->staticDir ->readFile ('frontend/Vendor/child/default/css/styles-m.css ' );
151
- $ this ->assertLessPreProcessor ($ actualFileContent );
152
- $ this ->assertCssUrlFixerPostProcessor ($ actualFileContent );
151
+ $ this ->assertCssFromChildTheme ($ actualFileContent );
153
152
154
153
foreach (['Magento/zoom1 ' , 'Magento/zoom2 ' , 'Magento/zoom3 ' , 'Vendor/parent ' , 'Vendor/child ' ] as $ theme ) {
155
154
$ this ->assertBundleSize ($ theme );
@@ -166,7 +165,7 @@ public function testDeploy()
166
165
*/
167
166
private function assertFileExistsIsGenerated ($ fileName )
168
167
{
169
- foreach (['Magento/zoom1 ' , 'Magento/zoom2 ' , 'Magento/zoom3 ' ] as $ theme ) {
168
+ foreach (['Magento/zoom1 ' , 'Magento/zoom2 ' , 'Magento/zoom3 ' , ' Vendor/parent ' , ' Vendor/child ' ] as $ theme ) {
170
169
foreach ($ this ->options [Options::LANGUAGE ] as $ locale ) {
171
170
$ this ->assertFileExists (
172
171
$ this ->staticDir ->getAbsolutePath (
@@ -217,6 +216,21 @@ private function assertCssUrlFixerPostProcessor($actualRootCssContent)
217
216
$ this ->assertStringContainsString ('color:#111 ' , $ actualRootCssContent );
218
217
}
219
218
219
+ /**
220
+ * Assert CSS from child post-processor
221
+ *
222
+ * @param $actualRootCssContent
223
+ * @return void
224
+ */
225
+ private function assertCssFromChildTheme ($ actualRootCssContent )
226
+ {
227
+ //assert CssUrlFixer fix urls
228
+ $ this ->assertStringContainsString (
229
+ 'super-test-class-for-easy-find ' ,
230
+ $ actualRootCssContent
231
+ );
232
+ }
233
+
220
234
/**
221
235
* Assert correct bundle size according to configuration set in view.xml
222
236
*
0 commit comments