#615 - sql table aliases should stay constant over time
This commit is contained in:
parent
10da2eb85b
commit
69494dc624
@ -25,6 +25,17 @@ class SqlWalkerTest extends OrmTestCase
|
||||
$this->assertSame($expectedAlias, $sqlWalker->getSQLTableAlias($tableName));
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider getColumnNamesAndSqlAliases
|
||||
*/
|
||||
public function testGetSQLTableAliasIsSameForMultipleCalls($tableName)
|
||||
{
|
||||
$query = new Query($this->_getTestEntityManager());
|
||||
$sqlWalker = new SqlWalker($query, new ParserResult(), array());
|
||||
|
||||
$this->assertSame($sqlWalker->getSQLTableAlias($tableName), $sqlWalker->getSQLTableAlias($tableName));
|
||||
}
|
||||
|
||||
/**
|
||||
* @private data provider
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user