Commit 9a04ae28 authored by Steve Müller's avatar Steve Müller

fix test case

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