1
0
mirror of synced 2025-01-18 14:31:40 +03:00

Add test for DDC-1227 regression

This commit is contained in:
Benjamin Eberlei 2011-06-25 10:27:06 +02:00
parent 0dd1dc20c8
commit 07f568e2b4

View File

@ -709,4 +709,16 @@ class QueryBuilderTest extends \Doctrine\Tests\OrmTestCase
$this->assertEquals('SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.username = 0', $qb->getDQL());
}
/**
* @group DDC-1227
*/
public function testAddFromString()
{
$qb = $this->_em->createQueryBuilder()
->add('select', 'u')
->add('from', 'Doctrine\Tests\Models\CMS\CmsUser u');
$this->assertEquals('SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u', $qb->getDQL());
}
}