Commit 32640ae4 authored by Steve Müller's avatar Steve Müller

fix test case

parent 57d2a77e
...@@ -624,9 +624,9 @@ class QueryBuilderTest extends \Doctrine\Tests\DbalTestCase ...@@ -624,9 +624,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);
...@@ -636,10 +636,11 @@ class QueryBuilderTest extends \Doctrine\Tests\DbalTestCase ...@@ -636,10 +636,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