We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87454e6 commit c5286d1Copy full SHA for c5286d1
1 file changed
tests/system/Models/InsertModelTest.php
@@ -65,6 +65,26 @@ public function testInsertBatchSuccess(): void
65
$this->seeInDatabase('job', ['name' => 'Cab Driver']);
66
}
67
68
+ public function testInsertBatchUseAutoIncrementSetToFalse(): void
69
+ {
70
+ $insertData = [
71
+ [
72
+ 'key' => 'key1',
73
+ 'value' => 'value1',
74
+ ],
75
76
+ 'key' => 'key2',
77
+ 'value' => 'value2',
78
79
+ ];
80
+
81
+ $this->createModel(WithoutAutoIncrementModel::class);
82
+ $this->model->insertBatch($insertData);
83
84
+ $this->seeInDatabase('without_auto_increment', ['key' => 'key1']);
85
+ $this->seeInDatabase('without_auto_increment', ['key' => 'key2']);
86
+ }
87
88
public function testInsertBatchValidationFail(): void
89
{
90
$jobData = [
0 commit comments