diff --git a/src/Configurator.php b/src/Configurator.php index de54689..bc369be 100644 --- a/src/Configurator.php +++ b/src/Configurator.php @@ -61,7 +61,7 @@ public function normalize() $this->preparePhpCsFixer(); - Process::run([__DIR__.'/../vendor/bin/php-cs-fixer', 'fix', $path, '--rules', $rules]); + Process::run(['vendor/bin/php-cs-fixer', 'fix', $path, '--rules', $rules]); return $this; } diff --git a/tests/MigrateSiteTest.php b/tests/MigrateSiteTest.php index 8182105..32705a5 100644 --- a/tests/MigrateSiteTest.php +++ b/tests/MigrateSiteTest.php @@ -2,6 +2,7 @@ namespace Tests; +use Facades\Statamic\Console\Processes\Process; use Statamic\Facades\Path; use Statamic\Migrator\Configurator; use Statamic\Migrator\YAML; @@ -54,6 +55,8 @@ protected function setUp(): void $this->files->copyDirectory(__DIR__.'/Fixtures/site', base_path('site')); $this->files->copyDirectory(__DIR__.'/Fixtures/assets', base_path('assets')); $this->files->copy(__DIR__.'/Fixtures/routes/web.php', $this->paths('routesFile')); + + Process::swap(new \Statamic\Console\Processes\Process(__DIR__.'/../')); } /** @test */