diff --git a/tests/Feature/ImportCsvTest.php b/tests/Feature/ImportCsvTest.php index b7b5757385..c78644e41e 100644 --- a/tests/Feature/ImportCsvTest.php +++ b/tests/Feature/ImportCsvTest.php @@ -28,7 +28,7 @@ public function it_should_import_a_csv() 'post', 'nova-vendor/sparclex/nova-import-card/endpoint/users', [ - 'file' => $this->createTmpFile(__DIR__ . '/../stubs/users.csv'), + 'file' => $this->createTmpFile(__DIR__.'/../stubs/users.csv'), ] ) ->assertSuccessful(); @@ -63,7 +63,7 @@ public function it_should_respect_validation_rules() 'post', 'nova-vendor/sparclex/nova-import-card/endpoint/users', [ - 'file' => $this->createTmpFile(__DIR__ . '/../stubs/users-with-null-value.csv'), + 'file' => $this->createTmpFile(__DIR__.'/../stubs/users-with-null-value.csv'), ] ) ->assertStatus(422) @@ -81,7 +81,7 @@ public function it_should_not_import_unkown_file_types() 'post', 'nova-vendor/sparclex/nova-import-card/endpoint/users', [ - 'file' => $this->createTmpFile(__DIR__ . '/../stubs/unknown.zip', 'zip'), + 'file' => $this->createTmpFile(__DIR__.'/../stubs/unknown.zip', 'zip'), ] ) ->assertStatus(422) @@ -100,7 +100,7 @@ public function it_should_import_with_related() 'post', 'nova-vendor/sparclex/nova-import-card/endpoint/addresses', [ - 'file' => $this->createTmpFile(__DIR__ . '/../stubs/addresses.csv'), + 'file' => $this->createTmpFile(__DIR__.'/../stubs/addresses.csv'), ] ) ->assertSuccessful(); @@ -127,7 +127,7 @@ public function it_should_import_with_nullable_related() 'post', 'nova-vendor/sparclex/nova-import-card/endpoint/addresses', [ - 'file' => $this->createTmpFile(__DIR__ . '/../stubs/addresses-nullable.csv'), + 'file' => $this->createTmpFile(__DIR__.'/../stubs/addresses-nullable.csv'), ] ) ->assertSuccessful(); @@ -147,6 +147,6 @@ protected function createTmpFile($path, $ext = 'csv') $tmp = tmpfile(); fwrite($tmp, file_get_contents($path)); - return new File('file.' . $ext, $tmp); + return new File('file.'.$ext, $tmp); } } diff --git a/tests/IntegrationTest.php b/tests/IntegrationTest.php index dcf6abd547..83a5abdba8 100644 --- a/tests/IntegrationTest.php +++ b/tests/IntegrationTest.php @@ -36,7 +36,7 @@ public function setUp(): void $this->loadMigrations(); - $this->withFactories(__DIR__ . '/Factories'); + $this->withFactories(__DIR__.'/Factories'); Nova::$tools = []; Nova::$resources = []; @@ -60,7 +60,7 @@ protected function loadMigrations() { $this->loadMigrationsFrom([ '--database' => 'sqlite', - '--realpath' => realpath(__DIR__ . '/Migrations'), + '--realpath' => realpath(__DIR__.'/Migrations'), ]); }