Prepared some more DQL tests.
This commit is contained in:
parent
e7ac35ed95
commit
d86c2f6709
1 changed files with 10 additions and 0 deletions
|
@ -210,6 +210,16 @@ class LanguageRecognitionTest extends \Doctrine\Tests\OrmTestCase
|
||||||
$this->assertValidDql("SELECT u.name, (SELECT COUNT(p.phonenumber) FROM Doctrine\Tests\Models\CMS\CmsPhonenumber p WHERE p.phonenumber = 1234) pcount FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.name = 'jon'");
|
$this->assertValidDql("SELECT u.name, (SELECT COUNT(p.phonenumber) FROM Doctrine\Tests\Models\CMS\CmsPhonenumber p WHERE p.phonenumber = 1234) pcount FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.name = 'jon'");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*public function testSubselectInSelectPart2()
|
||||||
|
{
|
||||||
|
$this->assertValidDql("SELECT SUM(u.id) / COUNT(u.id) FROM Doctrine\Tests\Models\CMS\CmsUser u");
|
||||||
|
}*/
|
||||||
|
|
||||||
|
/*public function testSubselectInSelectPart3()
|
||||||
|
{
|
||||||
|
$this->assertValidDql("SELECT (SELECT SUM(u.id) / COUNT(u.id) FROM Doctrine\Tests\Models\CMS\CmsUser u2) value FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.name = 'jon'");
|
||||||
|
}*/
|
||||||
|
|
||||||
public function testPositionalInputParameter()
|
public function testPositionalInputParameter()
|
||||||
{
|
{
|
||||||
$this->assertValidDql('SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.id = ?1');
|
$this->assertValidDql('SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.id = ?1');
|
||||||
|
|
Loading…
Add table
Reference in a new issue