You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/Doctrine/Tests/ORM/Functional/QueryDqlFunctionTest.php
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ public function testAggregateCount()
61
61
62
62
publicfunctiontestFunctionAbs()
63
63
{
64
-
$result = $this->_em->createQuery('SELECT m, ABS(m.salary * -1) AS abs FROM Doctrine\Tests\Models\Company\CompanyManager m')
64
+
$result = $this->_em->createQuery('SELECT m, ABS(m.salary * -1) AS abs FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC')
65
65
->getResult();
66
66
67
67
$this->assertEquals(4, count($result));
@@ -73,7 +73,7 @@ public function testFunctionAbs()
73
73
74
74
publicfunctiontestFunctionConcat()
75
75
{
76
-
$arg = $this->_em->createQuery('SELECT m, CONCAT(m.name, m.department) AS namedep FROM Doctrine\Tests\Models\Company\CompanyManager m')
76
+
$arg = $this->_em->createQuery('SELECT m, CONCAT(m.name, m.department) AS namedep FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC')
77
77
->getArrayResult();
78
78
79
79
$this->assertEquals(4, count($arg));
@@ -85,7 +85,7 @@ public function testFunctionConcat()
85
85
86
86
publicfunctiontestFunctionLength()
87
87
{
88
-
$result = $this->_em->createQuery('SELECT m, LENGTH(CONCAT(m.name, m.department)) AS namedeplength FROM Doctrine\Tests\Models\Company\CompanyManager m')
88
+
$result = $this->_em->createQuery('SELECT m, LENGTH(CONCAT(m.name, m.department)) AS namedeplength FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC')
89
89
->getArrayResult();
90
90
91
91
$this->assertEquals(4, count($result));
@@ -98,7 +98,7 @@ public function testFunctionLength()
98
98
publicfunctiontestFunctionLocate()
99
99
{
100
100
$dql = "SELECT m, LOCATE('e', LOWER(m.name)) AS loc, LOCATE('e', LOWER(m.name), 7) AS loc2 ".
0 commit comments