Commit f06e1266 authored by jarekj's avatar jarekj

Update QueryBuilderTest.php

parent 8bdd3af5
...@@ -863,4 +863,24 @@ class QueryBuilderTest extends \Doctrine\Tests\DbalTestCase ...@@ -863,4 +863,24 @@ class QueryBuilderTest extends \Doctrine\Tests\DbalTestCase
$this->assertSame(array('name' => \PDO::PARAM_STR, 'isActive' => \PDO::PARAM_BOOL), $qb->getParameterTypes()); $this->assertSame(array('name' => \PDO::PARAM_STR, 'isActive' => \PDO::PARAM_BOOL), $qb->getParameterTypes());
} }
/**
* @group DBAL-790
*/
public function testSelectWithJoinsWithNotUniqueAliases()
{
$qb = new QueryBuilder($this->conn);
$qb->select('a.id, b.id')
->from('table_a', 'a')
->join('a', 'table_b', 'b', 'a.fk_b = b.id')
->join('a', 'table_b', 'b', 'a.fk_b = b.id')
->join('b', 'table_a', 'a', 'a.fk_b = b.id');
$this->setExpectedException('QueryException');
$this->assertEquals(
'dumb string',
$qb->getSQL(),
);
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment