@@ -305,20 +305,20 @@ public function testWheresWithArrayValue()
305
305
$ this ->assertSame ('select * from "users" where "id" = ? ' , $ builder ->toSql ());
306
306
$ this ->assertEquals ([0 => 12 ], $ builder ->getBindings ());
307
307
308
- // $builder = $this->getBuilder();
309
- // $builder->select('*')->from('users')->where('id', '=', [12, 30]);
310
- // $this->assertSame('select * from "users" where "id" = ?', $builder->toSql());
311
- // $this->assertEquals([0 => 12, 1 => 30 ], $builder->getBindings());
312
-
313
- // $builder = $this->getBuilder();
314
- // $builder->select('*')->from('users')->where('id', '!=', [12, 30]);
315
- // $this->assertSame('select * from "users" where "id" != ?', $builder->toSql());
316
- // $this->assertEquals([0 => 12, 1 => 30 ], $builder->getBindings());
317
-
318
- // $builder = $this->getBuilder();
319
- // $builder->select('*')->from('users')->where('id', '<>', [12, 30]);
320
- // $this->assertSame('select * from "users" where "id" <> ?', $builder->toSql());
321
- // $this->assertEquals([0 => 12, 1 => 30 ], $builder->getBindings());
308
+ $ builder = $ this ->getBuilder ();
309
+ $ builder ->select ('* ' )->from ('users ' )->where ('id ' , '= ' , [12 , 30 ]);
310
+ $ this ->assertSame ('select * from "users" where "id" = ? ' , $ builder ->toSql ());
311
+ $ this ->assertEquals ([0 => 12 ], $ builder ->getBindings ());
312
+
313
+ $ builder = $ this ->getBuilder ();
314
+ $ builder ->select ('* ' )->from ('users ' )->where ('id ' , '!= ' , [12 , 30 ]);
315
+ $ this ->assertSame ('select * from "users" where "id" != ? ' , $ builder ->toSql ());
316
+ $ this ->assertEquals ([0 => 12 ], $ builder ->getBindings ());
317
+
318
+ $ builder = $ this ->getBuilder ();
319
+ $ builder ->select ('* ' )->from ('users ' )->where ('id ' , '<> ' , [12 , 30 ]);
320
+ $ this ->assertSame ('select * from "users" where "id" <> ? ' , $ builder ->toSql ());
321
+ $ this ->assertEquals ([0 => 12 ], $ builder ->getBindings ());
322
322
}
323
323
324
324
public function testMySqlWrappingProtectsQuotationMarks ()
0 commit comments