Commit 03c39bdd authored by Steve Müller's avatar Steve Müller

fix test case

parent ea97609e
......@@ -867,9 +867,9 @@ class QueryBuilderTest extends \Doctrine\Tests\DbalTestCase
}
/**
* @group DBAL-790
* @group DBAL-1137
*/
public function testSelectWithJoinsWithNotUniqueAliases()
public function testSelectWithJoinsWithNonUniqueAliases()
{
$qb = new QueryBuilder($this->conn);
......@@ -879,10 +879,11 @@ class QueryBuilderTest extends \Doctrine\Tests\DbalTestCase
->join('a', 'table_b', 'b', 'a.fk_b = b.id')
->join('b', 'table_a', 'a', 'a.fk_b = b.id');
$this->setExpectedException('Doctrine\DBAL\Query\QueryException');
$this->assertEquals(
'dumb string',
$qb->getSQL()
$this->setExpectedException(
'Doctrine\DBAL\Query\QueryException',
"The given alias 'b' is not unique in FROM and JOIN clause table. The currently registered aliases are: a, b."
);
$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