1
0
mirror of synced 2025-01-31 20:41:44 +03:00

#615 - sql table aliases should stay constant over time

This commit is contained in:
Marco Pivetta 2014-10-19 17:18:30 +02:00
parent 10da2eb85b
commit 69494dc624

View File

@ -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
*