Skip to content

Commit 0ccf44d

Browse files
committed
Added exclusions.
1 parent 95a5f62 commit 0ccf44d

4 files changed

Lines changed: 37 additions & 30 deletions

File tree

.vortex/tests/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"php": ">=8.2"
1313
},
1414
"require-dev": {
15-
"alexskrypnyk/file": "^0.10",
15+
"alexskrypnyk/file": "dev-main",
1616
"alexskrypnyk/phpunit-helpers": "^0.10",
1717
"alexskrypnyk/shellvar": "^1.2",
1818
"czproject/git-php": "^4.4",

.vortex/tests/composer.lock

Lines changed: 11 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.vortex/tests/phpunit/Traits/AssertProjectFilesTrait.php

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

.vortex/tests/phpunit/Traits/Steps/StepTestBddTrait.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace DrevOps\Vortex\Tests\Traits\Steps;
66

77
use AlexSkrypnyk\File\File;
8-
use AlexSkrypnyk\File\Tests\Traits\DirectoryAssertionsTrait;
98
use DrevOps\Vortex\Tests\Traits\LoggerTrait;
109

1110
/**
@@ -14,7 +13,6 @@
1413
trait StepTestBddTrait {
1514

1615
use LoggerTrait;
17-
use DirectoryAssertionsTrait;
1816

1917
protected function stepTestBdd(): void {
2018
$this->logStepStart();

0 commit comments

Comments
 (0)