Пример #1
0
 /**
  * @dataProvider dataDelete
  *
  * @param string $tableName
  * @param string $tableAlias
  * @param array $expectedQueryPart
  * @param string $expectedQuery
  */
 public function testDelete($tableName, $tableAlias, $expectedQueryPart, $expectedQuery)
 {
     $this->queryBuilder->delete($tableName, $tableAlias);
     $this->assertSame($expectedQueryPart, $this->queryBuilder->getQueryPart('from'));
     $this->assertSame('DELETE FROM ' . $expectedQuery, $this->queryBuilder->getSQL());
 }