add SqlWalkerTest for getSQLTableAlias method
This commit is contained in:
parent
fb5f76f025
commit
109b0444f5
1 changed files with 20 additions and 0 deletions
20
tests/Doctrine/Tests/ORM/Query/SqlWalkerTest.php
Normal file
20
tests/Doctrine/Tests/ORM/Query/SqlWalkerTest.php
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Doctrine\Tests\ORM\Query;
|
||||||
|
|
||||||
|
use Doctrine\ORM\Query\SqlWalker;
|
||||||
|
use Doctrine\ORM\Query;
|
||||||
|
use Doctrine\Tests\OrmTestCase;
|
||||||
|
use Doctrine\ORM\Query\ParserResult;
|
||||||
|
|
||||||
|
class SqlWalkerTest extends OrmTestCase
|
||||||
|
{
|
||||||
|
public function testGetSQLTableAlias()
|
||||||
|
{
|
||||||
|
$query = new Query($this->_getTestEntityManager());
|
||||||
|
$sqlWalker = new SqlWalker($query, new ParserResult(), array());
|
||||||
|
|
||||||
|
$this->assertSame('t0_', $sqlWalker->getSQLTableAlias('table'));
|
||||||
|
$this->assertSame('t1_', $sqlWalker->getSQLTableAlias('çtable'));
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue