Skip to content

Commit 5e69cdc

Browse files
debug: multiple table get id from the model
1 parent 0e43062 commit 5e69cdc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/BackupTablesTest.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function test_generate_multiple_table_backup()
128128
]);
129129

130130
Son::create([
131-
'father_id' => 1,
131+
'father_id' => Father::value('id')
132132
]);
133133

134134
BackupTables::backupTables([$tableName, $tableName2]);
@@ -154,8 +154,8 @@ public function test_generate_multiple_table_backup()
154154
$this->assertEquals(DB::table($tableName2)->value('father_id'), DB::table($newTableName2)->value('father_id')); // foreign key
155155
}
156156

157-
public function test_generate_multiple_models_backup()
158-
{
159-
$this->markTestSkipped();
160-
}
157+
//public function test_generate_multiple_models_backup()
158+
//{
159+
// $this->markTestSkipped();
160+
//}
161161
}

0 commit comments

Comments
 (0)