Ejemplo n.º 1
0
 /**
  * @test
  */
 public function simpleUpdateBuilder()
 {
     $table = 'types';
     $data = array('title' => 'my-status', 'global' => 0);
     $where = "`id` = '2'";
     $excepted = "UPDATE `{$this->trueDatabase1}`.`types` SET `title` = 'my-status', `global` = '0' WHERE `id` = '2'";
     $results = $this->databaseConnection->simpleUpdateBuilder($table, $data, $where);
     $this->assertEquals($excepted, $results);
 }