diff --git a/src/FileMigrationHelper.php b/src/Migration/FileMigrationHelper.php similarity index 99% rename from src/FileMigrationHelper.php rename to src/Migration/FileMigrationHelper.php index b02104b9..6695bde7 100644 --- a/src/FileMigrationHelper.php +++ b/src/Migration/FileMigrationHelper.php @@ -1,6 +1,6 @@ exclude('ClassName', Folder::class) as $file) { $dest = TestAssetStore::base_path() . '/' . $file->generateFilename(); Filesystem::makeFolder(dirname($dest)); diff --git a/tests/php/FileMigrationHelperTest.yml b/tests/php/Migration/FileMigrationHelperTest.yml similarity index 100% rename from tests/php/FileMigrationHelperTest.yml rename to tests/php/Migration/FileMigrationHelperTest.yml diff --git a/tests/php/LegacyThumbnailMigrationHelperTest.php b/tests/php/Migration/LegacyThumbnailMigrationHelperTest.php similarity index 97% rename from tests/php/LegacyThumbnailMigrationHelperTest.php rename to tests/php/Migration/LegacyThumbnailMigrationHelperTest.php index a40356a7..59740687 100644 --- a/tests/php/LegacyThumbnailMigrationHelperTest.php +++ b/tests/php/Migration/LegacyThumbnailMigrationHelperTest.php @@ -1,19 +1,16 @@ joinPaths(__DIR__, 'ImageTest/test-image-low-quality.jpg'); + $from = $this->joinPaths(__DIR__, '..', 'ImageTest/test-image-low-quality.jpg'); foreach (File::get()->exclude('ClassName', Folder::class) as $file) { /** @var $file File */ $file->setFromLocalFile($from, $file->generateFilename()); diff --git a/tests/php/LegacyThumbnailMigrationHelperTest.yml b/tests/php/Migration/LegacyThumbnailMigrationHelperTest.yml similarity index 100% rename from tests/php/LegacyThumbnailMigrationHelperTest.yml rename to tests/php/Migration/LegacyThumbnailMigrationHelperTest.yml