Skip to content

Commit 4a75be3

Browse files
debug: test_generate_single_table_backup_all_table_data
1 parent ecf356e commit 4a75be3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/BackupTablesTest.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Carbon\Carbon;
66
use Illuminate\Foundation\Testing\RefreshDatabase;
7-
use Illuminate\Foundation\Testing\WithFaker;
87
use Illuminate\Support\Facades\App;
98
use Illuminate\Support\Facades\DB;
109
use Illuminate\Support\Facades\Schema;
@@ -78,6 +77,12 @@ public function test_generate_single_table_backup_all_table_data()
7877

7978
$this->assertTrue(Schema::hasTable($newTableName));
8079

80+
// Debugging output to inspect the contents of the backup table
81+
if (DB::getDriverName() == 'mysql') {
82+
$backupData = DB::table($newTableName)->get();
83+
dd($backupData);
84+
}
85+
8186
$this->assertEquals(DB::table($tableName)->value('first_name'), DB::table($newTableName)->value('first_name'));
8287
$this->assertEquals(DB::table($tableName)->value('email'), DB::table($newTableName)->value('email'));
8388

0 commit comments

Comments
 (0)