@@ -652,7 +652,8 @@ class QueryBuilderTest extends \Doctrine\Tests\DbalTestCase
...
@@ -652,7 +652,8 @@ class QueryBuilderTest extends \Doctrine\Tests\DbalTestCase
->innerJoin('nt','node','n','nt.node = n.id')
->innerJoin('nt','node','n','nt.node = n.id')
->where('nt.lang = :lang AND n.deleted != 1');
->where('nt.lang = :lang AND n.deleted != 1');
$this->expectException('Doctrine\DBAL\Query\QueryException',"The given alias 'invalid' is not part of any FROM or JOIN clause table. The currently registered aliases are: news, nv.");
$this->expectExceptionMessage("The given alias 'invalid' is not part of any FROM or JOIN clause table. The currently registered aliases are: news, nv.");
self::assertEquals('',$qb->getSQL());
self::assertEquals('',$qb->getSQL());
}
}
...
@@ -894,10 +895,8 @@ class QueryBuilderTest extends \Doctrine\Tests\DbalTestCase
...
@@ -894,10 +895,8 @@ class QueryBuilderTest extends \Doctrine\Tests\DbalTestCase
@@ -105,7 +108,8 @@ class PoolingShardConnectionTest extends \PHPUnit\Framework\TestCase
...
@@ -105,7 +108,8 @@ class PoolingShardConnectionTest extends \PHPUnit\Framework\TestCase
publicfunctiontestShardChoserWrongInstance()
publicfunctiontestShardChoserWrongInstance()
{
{
$this->expectException('InvalidArgumentException',"The 'shardChoser' configuration is not a valid instance of Doctrine\DBAL\Sharding\ShardChoser\ShardChoser");