Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-11-15 21:06:36 +0300
committerJoas Schilling <coding@schilljs.com>2021-11-15 21:06:36 +0300
commit3709a8182a930ef336c8a0dc988385206d9319bf (patch)
tree292226b330961b69a21a23d919c1dd21eaca6bc2 /tests
parent1362da82d595ee773b81d1c742471464cefb2e9a (diff)
Apply changes from master's update to 3.1.3
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/DB/QueryBuilder/QueryBuilderTest.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/lib/DB/QueryBuilder/QueryBuilderTest.php b/tests/lib/DB/QueryBuilder/QueryBuilderTest.php
index aef1acc40c1..19278504707 100644
--- a/tests/lib/DB/QueryBuilder/QueryBuilderTest.php
+++ b/tests/lib/DB/QueryBuilder/QueryBuilderTest.php
@@ -102,7 +102,7 @@ class QueryBuilderTest extends \Test\TestCase {
public function dataFirstResult() {
return [
- [null, [99, 98, 97, 96, 95, 94, 93, 92, 91]],
+ [0, [99, 98, 97, 96, 95, 94, 93, 92, 91]],
[0, [99, 98, 97, 96, 95, 94, 93, 92, 91]],
[1, [98, 97, 96, 95, 94, 93, 92, 91]],
[5, [94, 93, 92, 91]],
@@ -112,7 +112,7 @@ class QueryBuilderTest extends \Test\TestCase {
/**
* @dataProvider dataFirstResult
*
- * @param int $firstResult
+ * @param int|null $firstResult
* @param array $expectedSet
*/
public function testFirstResult($firstResult, $expectedSet) {
@@ -121,14 +121,10 @@ class QueryBuilderTest extends \Test\TestCase {
if ($firstResult !== null) {
$this->queryBuilder->setFirstResult($firstResult);
-
- // FIXME Remove this once Doctrine/DBAL is >2.5.1:
- // FIXME See https://github.com/doctrine/dbal/pull/782
- $this->queryBuilder->setMaxResults(100);
}
$this->assertSame(
- $firstResult,
+ $firstResult ?? 0,
$this->queryBuilder->getFirstResult()
);