diff --git a/src/Configurator.php b/src/Configurator.php index bc369be..3e5307c 100644 --- a/src/Configurator.php +++ b/src/Configurator.php @@ -61,7 +61,7 @@ public function normalize() $this->preparePhpCsFixer(); - Process::run(['vendor/bin/php-cs-fixer', 'fix', $path, '--rules', $rules]); + Process::run([getcwd().'/vendor/bin/php-cs-fixer', 'fix', $path, '--rules', $rules]); return $this; } diff --git a/tests/ConfiguratorTest.php b/tests/ConfiguratorTest.php index b1bc8b6..189967a 100644 --- a/tests/ConfiguratorTest.php +++ b/tests/ConfiguratorTest.php @@ -2,7 +2,6 @@ namespace Tests; -use Facades\Statamic\Console\Processes\Process; use Statamic\Facades\Path; use Statamic\Migrator\Configurator; @@ -15,8 +14,6 @@ public function setUp(): void $this->files->copy(__DIR__.'/Fixtures/config/configurator-test.php', $this->path()); $this->configurator = Configurator::file('statamic/configurator-test.php'); - - Process::swap(new \Statamic\Console\Processes\Process(__DIR__.'/../')); } protected function path() diff --git a/tests/MigrateAssetContainerTest.php b/tests/MigrateAssetContainerTest.php index 448844c..e33ec3e 100644 --- a/tests/MigrateAssetContainerTest.php +++ b/tests/MigrateAssetContainerTest.php @@ -2,7 +2,6 @@ namespace Tests; -use Facades\Statamic\Console\Processes\Process; use Statamic\Facades\Path; use Statamic\Migrator\Configurator; use Statamic\Migrator\YAML; @@ -15,8 +14,6 @@ public function setUp(): void parent::setUp(); $this->configurator = Configurator::file('filesystems.php'); - - Process::swap(new \Statamic\Console\Processes\Process(__DIR__.'/../')); } protected function paths() diff --git a/tests/MigrateSettingsTest.php b/tests/MigrateSettingsTest.php index f8af063..bfcc62e 100644 --- a/tests/MigrateSettingsTest.php +++ b/tests/MigrateSettingsTest.php @@ -2,7 +2,6 @@ namespace Tests; -use Facades\Statamic\Console\Processes\Process; use Illuminate\Support\Facades\File; class MigrateSettingsTest extends TestCase @@ -20,8 +19,6 @@ public function setUp(): void { parent::setUp(); - Process::swap(new \Statamic\Console\Processes\Process(__DIR__.'/../')); - $this->files->copy(__DIR__.'/Fixtures/routes/web.php', $this->paths('routesFile')); } diff --git a/tests/MigrateSiteTest.php b/tests/MigrateSiteTest.php index 32705a5..8182105 100644 --- a/tests/MigrateSiteTest.php +++ b/tests/MigrateSiteTest.php @@ -2,7 +2,6 @@ namespace Tests; -use Facades\Statamic\Console\Processes\Process; use Statamic\Facades\Path; use Statamic\Migrator\Configurator; use Statamic\Migrator\YAML; @@ -55,8 +54,6 @@ 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 */