@@ -91,24 +91,13 @@ public function testIncrementManyWithValue(): void
9191
9292 public function testIncrementManyWithNegativeValue (): void
9393 {
94- $ this ->hasInDatabase ('job ' , ['name ' => 'job1 ' , 'description ' => '6 ' , 'created_at ' => 1 ]);
94+ $ this ->hasInDatabase ('job ' , ['name ' => 'job1 ' , 'description ' => '- 6 ' , 'created_at ' => 1 ]);
9595
9696 $ this ->db ->table ('job ' )
9797 ->where ('name ' , 'job1 ' )
98- ->incrementMany (['description ' => 2 , 'created_at ' => -1 ]);
99-
100- $ this ->seeInDatabase ('job ' , ['name ' => 'job1 ' , 'description ' => '8 ' , 'created_at ' => 0 ]);
101- }
102-
103- public function testIncrementManyWithInitialAndIncrementNegativeValues (): void
104- {
105- $ this ->hasInDatabase ('job ' , ['name ' => 'job2 ' , 'description ' => '10 ' , 'created_at ' => -1 ]);
106-
107- $ this ->db ->table ('job ' )
108- ->where ('name ' , 'job2 ' )
109- ->incrementMany (['description ' => 2 , 'created_at ' => -3 ]);
98+ ->incrementMany (['description ' => -2 , 'created_at ' => -1 ]);
11099
111- $ this ->seeInDatabase ('job ' , ['name ' => 'job2 ' , 'description ' => '12 ' , 'created_at ' => - 4 ]);
100+ $ this ->seeInDatabase ('job ' , ['name ' => 'job1 ' , 'description ' => '-8 ' , 'created_at ' => 0 ]);
112101 }
113102
114103 public function testIncrementManyWithEmptyColumns (): void
@@ -209,24 +198,13 @@ public function testDecrementManyWithValue(): void
209198
210199 public function testDecrementManyWithNegativeValue (): void
211200 {
212- $ this ->hasInDatabase ('job ' , ['name ' => 'job1 ' , 'description ' => '6 ' , 'created_at ' => 1 ]);
201+ $ this ->hasInDatabase ('job ' , ['name ' => 'job1 ' , 'description ' => '- 6 ' , 'created_at ' => 1 ]);
213202
214203 $ this ->db ->table ('job ' )
215204 ->where ('name ' , 'job1 ' )
216- ->decrementMany (['description ' => 2 , 'created_at ' => -1 ]);
217-
218- $ this ->seeInDatabase ('job ' , ['name ' => 'job1 ' , 'description ' => '4 ' , 'created_at ' => 2 ]);
219- }
220-
221- public function testDecrementManyWithInitialAndIncrementNegativeValues (): void
222- {
223- $ this ->hasInDatabase ('job ' , ['name ' => 'job2 ' , 'description ' => '10 ' , 'created_at ' => -1 ]);
224-
225- $ this ->db ->table ('job ' )
226- ->where ('name ' , 'job2 ' )
227- ->decrementMany (['description ' => 2 , 'created_at ' => -3 ]);
205+ ->decrementMany (['description ' => -2 , 'created_at ' => -1 ]);
228206
229- $ this ->seeInDatabase ('job ' , ['name ' => 'job2 ' , 'description ' => '8 ' , 'created_at ' => 2 ]);
207+ $ this ->seeInDatabase ('job ' , ['name ' => 'job1 ' , 'description ' => '-4 ' , 'created_at ' => 2 ]);
230208 }
231209
232210 public function testDecrementManyWithEmptyColumns (): void
0 commit comments