diff --git a/src/BackupTablesServiceProvider.php b/src/BackupTablesServiceProvider.php index aa21a29..e7098bb 100644 --- a/src/BackupTablesServiceProvider.php +++ b/src/BackupTablesServiceProvider.php @@ -15,7 +15,7 @@ public function boot() { // This migration works only in the package test if ($this->app->runningInConsole() && $this->app->environment() === 'testing') { - $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); + $this->loadMigrationsFrom(__DIR__.'/../tests/database/migrations'); } } } diff --git a/tests/BackupTablesTest.php b/tests/BackupTablesTest.php index 0c91c96..7cb807b 100644 --- a/tests/BackupTablesTest.php +++ b/tests/BackupTablesTest.php @@ -10,9 +10,9 @@ use Illuminate\Support\Str; use WatheqAlshowaiter\BackupTables\BackupTables; use WatheqAlshowaiter\BackupTables\Constants; -use WatheqAlshowaiter\BackupTables\Models\Father; -use WatheqAlshowaiter\BackupTables\Models\Mother; -use WatheqAlshowaiter\BackupTables\Models\Son; +use WatheqAlshowaiter\BackupTables\Tests\Models\Father; +use WatheqAlshowaiter\BackupTables\Tests\Models\Mother; +use WatheqAlshowaiter\BackupTables\Tests\Models\Son; class BackupTablesTest extends TestCase { diff --git a/src/Models/Father.php b/tests/Models/Father.php similarity index 67% rename from src/Models/Father.php rename to tests/Models/Father.php index 58693ef..63d2429 100644 --- a/src/Models/Father.php +++ b/tests/Models/Father.php @@ -1,6 +1,6 @@