Skip to content

Commit 8e4e8be

Browse files
committed
Use the Storage facade to build the path, rather than the storage_path helper
1 parent b42ce28 commit 8e4e8be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Imports/StoreImportTest.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function it_stores_a_collection_import()
5151
$this->assertNotNull($import);
5252
$this->assertEquals('Posts', $import->name());
5353
$this->assertEquals('csv', $import->get('type'));
54-
$this->assertEquals(storage_path('app/statamic/imports/posts/import.csv'), $import->get('path'));
54+
$this->assertEquals(Storage::path('statamic/imports/posts/import.csv'), $import->get('path'));
5555
$this->assertEquals(['create', 'update'], $import->get('strategy'));
5656
}
5757

@@ -88,7 +88,7 @@ public function it_stores_a_collection_import_with_a_site()
8888
$this->assertNotNull($import);
8989
$this->assertEquals('Posts', $import->name());
9090
$this->assertEquals('csv', $import->get('type'));
91-
$this->assertEquals(storage_path('app/statamic/imports/posts/import.csv'), $import->get('path'));
91+
$this->assertEquals(Storage::path('statamic/imports/posts/import.csv'), $import->get('path'));
9292
$this->assertEquals(['create', 'update'], $import->get('strategy'));
9393

9494
$this->assertEquals('en', $import->get('destination.site'));
@@ -182,7 +182,7 @@ public function it_stores_a_taxonomy_import()
182182
$this->assertNotNull($import);
183183
$this->assertEquals('Categories', $import->name());
184184
$this->assertEquals('csv', $import->get('type'));
185-
$this->assertEquals(storage_path('app/statamic/imports/categories/import.csv'), $import->get('path'));
185+
$this->assertEquals(Storage::path('statamic/imports/categories/import.csv'), $import->get('path'));
186186
$this->assertEquals(['create', 'update'], $import->get('strategy'));
187187
}
188188

@@ -209,7 +209,7 @@ public function it_stores_a_user_import()
209209
$this->assertNotNull($import);
210210
$this->assertEquals('Users', $import->name());
211211
$this->assertEquals('csv', $import->get('type'));
212-
$this->assertEquals(storage_path('app/statamic/imports/users/import.csv'), $import->get('path'));
212+
$this->assertEquals(Storage::path('statamic/imports/users/import.csv'), $import->get('path'));
213213
$this->assertEquals(['create', 'update'], $import->get('strategy'));
214214
}
215215

0 commit comments

Comments
 (0)