@@ -82,7 +82,7 @@ class DeployTest extends \PHPUnit_Framework_TestCase
82
82
Options::EXCLUDE_AREA => ['none ' ],
83
83
Options::THEME => ['Magento/zoom1 ' , 'Magento/zoom2 ' , 'Magento/zoom3 ' ],
84
84
Options::EXCLUDE_THEME => ['none ' ],
85
- Options::LANGUAGE => ['en_US ' ],
85
+ Options::LANGUAGE => ['en_US ' , ' fr_FR ' , ' pl_PL ' ],
86
86
Options::EXCLUDE_LANGUAGE => ['none ' ],
87
87
Options::JOBS_AMOUNT => 0 ,
88
88
Options::SYMLINK_LOCALE => false ,
@@ -137,6 +137,12 @@ public function testDeploy()
137
137
$ this ->assertFileExists ($ this ->staticDir ->getAbsolutePath ('frontend/Magento/zoom3/default/css/root.css ' ));
138
138
$ this ->assertFileExists ($ this ->staticDir ->getAbsolutePath ('frontend/Magento/zoom3/default/css/local.css ' ));
139
139
140
+ $ this ->assertFileExistsIsGenerated ('requirejs-config.js ' );
141
+ $ this ->assertFileExistsIsGenerated ('requirejs-map.js ' );
142
+ $ this ->assertFileExistsIsGenerated ('map.json ' );
143
+ $ this ->assertFileExistsIsGenerated ('js-translation.json ' );
144
+ $ this ->assertFileExistsIsGenerated ('result_map.json ' );
145
+
140
146
$ actualFileContent = $ this ->staticDir ->readFile ('frontend/Magento/zoom3/default/css/root.css ' );
141
147
$ this ->assertLessPreProcessor ($ actualFileContent );
142
148
$ this ->assertCssUrlFixerPostProcessor ($ actualFileContent );
@@ -148,6 +154,25 @@ public function testDeploy()
148
154
}
149
155
}
150
156
157
+ /**
158
+ * Assert file exists in all themes and locales
159
+ *
160
+ * @param string $fileName
161
+ * @return void
162
+ */
163
+ private function assertFileExistsIsGenerated ($ fileName )
164
+ {
165
+ foreach (['Magento/zoom1 ' , 'Magento/zoom2 ' , 'Magento/zoom3 ' ] as $ theme ) {
166
+ foreach ($ this ->options [Options::LANGUAGE ] as $ locale ) {
167
+ $ this ->assertFileExists (
168
+ $ this ->staticDir ->getAbsolutePath (
169
+ 'frontend/ ' . $ theme . '/ ' . $ locale . '/ ' . $ fileName
170
+ )
171
+ );
172
+ }
173
+ }
174
+ }
175
+
151
176
/**
152
177
* Assert Less pre-processor
153
178
*
0 commit comments