예제 #1
0
 /**
  * @dataProvider dataSet
  *
  * @param string $partOne1
  * @param string $partOne2
  * @param string $partTwo1
  * @param string $partTwo2
  * @param array $expectedQueryPart
  * @param string $expectedQuery
  */
 public function testSet($partOne1, $partOne2, $partTwo1, $partTwo2, $expectedQueryPart, $expectedQuery)
 {
     $this->queryBuilder->update('data');
     $this->queryBuilder->set($partOne1, $partOne2);
     if ($partTwo1 !== null) {
         $this->queryBuilder->set($partTwo1, $partTwo2);
     }
     $this->assertSame($expectedQueryPart, $this->queryBuilder->getQueryPart('set'));
     $this->assertSame('UPDATE `*PREFIX*data` SET ' . $expectedQuery, $this->queryBuilder->getSQL());
 }