Commit ac32b4b8 authored by jarekj's avatar jarekj Committed by Steve Müller

Update QueryBuilderTest.php

parent 9c66bde2
...@@ -622,4 +622,24 @@ class QueryBuilderTest extends \Doctrine\Tests\DbalTestCase ...@@ -622,4 +622,24 @@ class QueryBuilderTest extends \Doctrine\Tests\DbalTestCase
$this->assertFalse($qb->getQueryParts() === $qb_clone->getQueryParts()); $this->assertFalse($qb->getQueryParts() === $qb_clone->getQueryParts());
$this->assertFalse($qb->getParameters() === $qb_clone->getParameters()); $this->assertFalse($qb->getParameters() === $qb_clone->getParameters());
} }
/**
* @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