From 2e676e7ccbe1c40dc337302d25c5a74939292d4b Mon Sep 17 00:00:00 2001 From: Peter Fox Date: Sun, 14 Jan 2024 17:43:18 +0000 Subject: [PATCH] Fix breaking tests --- ...ckroachDbSchemaStateTest.php => DumpAndLoadSchemaTest.php} | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) rename tests/Integration/Database/{DatabaseCockroachDbSchemaStateTest.php => DumpAndLoadSchemaTest.php} (92%) diff --git a/tests/Integration/Database/DatabaseCockroachDbSchemaStateTest.php b/tests/Integration/Database/DumpAndLoadSchemaTest.php similarity index 92% rename from tests/Integration/Database/DatabaseCockroachDbSchemaStateTest.php rename to tests/Integration/Database/DumpAndLoadSchemaTest.php index ba5284e..b7a6590 100644 --- a/tests/Integration/Database/DatabaseCockroachDbSchemaStateTest.php +++ b/tests/Integration/Database/DumpAndLoadSchemaTest.php @@ -4,7 +4,7 @@ use Illuminate\Support\Facades\File; -class DatabaseCockroachDbSchemaStateTest extends DatabaseTestCase +class DumpAndLoadSchemaTest extends DatabaseTestCase { protected function setUp(): void { @@ -38,6 +38,8 @@ public function test_exporting_an_sql_dump() public function test_importing_an_sql_dump() { + // Make sure the schema direct exists first + File::ensureDirectoryExists(database_path('schema')); File::copy(__DIR__ . '/stubs/schema-dump.sql', database_path('schema/crdb-schema.sql')); if ($this->app['config']->get('database.default') !== 'testing') {