Skip to content

Commit 21a1e80

Browse files
committed
wip
1 parent df51442 commit 21a1e80

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/Fixtures/throwaway.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php

tests/TestCase.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
namespace Tests;
44

5+
use Facades\Statamic\Console\Processes\Process;
56
use Illuminate\Filesystem\Filesystem;
67
use Statamic\Facades\Path;
78
use Statamic\Migrator\Concerns\PreparesPathFolder;
9+
use Statamic\Migrator\Configurator;
810
use Statamic\Migrator\YAML;
911

1012
class TestCase extends \Orchestra\Testbench\TestCase
@@ -45,6 +47,9 @@ protected function setUp(): void
4547

4648
$this->restoreFilesystemConfig();
4749
$this->restoreStatamicConfigs();
50+
51+
// The first run after a fresh Composer install fails for some reason. This fixes it 🤷‍♂️
52+
Process::run([getcwd().'/vendor/bin/php-cs-fixer', 'fix', __DIR__.'/Fixtures/throwaway.php']);
4853
}
4954

5055
protected function tearDown(): void

0 commit comments

Comments
 (0)