@@ -276,22 +276,6 @@ protected function assertDrupalFilesPresent(string $webroot = 'web'): void {
276276
277277 // Assert all stub strings were replaced - these should not exist in any
278278 // files.
279- $ exclude = [
280- '.png ' ,
281- '.jpg ' ,
282- '.jpeg ' ,
283- '.gif ' ,
284- '.svg ' ,
285- '.ico ' ,
286- '.webp ' ,
287- '.tiff ' ,
288- '.tif ' ,
289- '.bmp ' ,
290- 'themes.README.txt ' ,
291- 'modules.README.txt ' ,
292- 'themes/README.txt ' ,
293- 'modules/README.txt ' ,
294- ];
295279 $ this ->assertDirectoryNotContainsString ('. ' , 'your_site ' );
296280 $ this ->assertDirectoryNotContainsString ('. ' , 'ys_base ' );
297281 $ this ->assertDirectoryNotContainsString ('. ' , 'YOURSITE ' );
@@ -301,9 +285,9 @@ protected function assertDrupalFilesPresent(string $webroot = 'web'): void {
301285 $ this ->assertDirectoryNotContainsString ('. ' , 'YOURORG ' );
302286 $ this ->assertDirectoryNotContainsString ('. ' , 'www.your-site-domain.example ' );
303287 // Assert all special comments were removed.
304- $ this ->assertDirectoryNotContainsString ('. ' , '#; ' , $ exclude );
305- $ this ->assertDirectoryNotContainsString ('. ' , '#;< ' , $ exclude );
306- $ this ->assertDirectoryNotContainsString ('. ' , '#;> ' , $ exclude );
288+ $ this ->assertDirectoryNotContainsString ('. ' , '#; ' );
289+ $ this ->assertDirectoryNotContainsString ('. ' , '#;< ' );
290+ $ this ->assertDirectoryNotContainsString ('. ' , '#;> ' );
307291 }
308292
309293 public function assertFilesTrackedInGit (string $ webroot = 'web ' , bool $ skip_commit = FALSE ): void {
@@ -357,4 +341,26 @@ protected function removeLocalDrupalSettings(string $webroot = 'web'): void {
357341 ]);
358342 }
359343
344+ /**
345+ * {@inheritdoc}
346+ */
347+ public function ignoredPaths (): array {
348+ return [
349+ '.png ' ,
350+ '.jpg ' ,
351+ '.jpeg ' ,
352+ '.gif ' ,
353+ '.svg ' ,
354+ '.ico ' ,
355+ '.webp ' ,
356+ '.tiff ' ,
357+ '.tif ' ,
358+ '.bmp ' ,
359+ 'themes.README.txt ' ,
360+ 'modules.README.txt ' ,
361+ 'themes/README.txt ' ,
362+ 'modules/README.txt ' ,
363+ ];
364+ }
365+
360366}
0 commit comments