Skip to content
This repository has been archived by the owner on Apr 18, 2020. It is now read-only.

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
Sparclex authored and StyleCIBot committed Mar 12, 2019
1 parent 504924c commit 00bd39f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions tests/Feature/ImportCsvTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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);
}
}
4 changes: 2 additions & 2 deletions tests/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function setUp(): void

$this->loadMigrations();

$this->withFactories(__DIR__ . '/Factories');
$this->withFactories(__DIR__.'/Factories');

Nova::$tools = [];
Nova::$resources = [];
Expand All @@ -60,7 +60,7 @@ protected function loadMigrations()
{
$this->loadMigrationsFrom([
'--database' => 'sqlite',
'--realpath' => realpath(__DIR__ . '/Migrations'),
'--realpath' => realpath(__DIR__.'/Migrations'),
]);
}

Expand Down

0 comments on commit 00bd39f

Please sign in to comment.