aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/tests/Controller/ApiControllerTest.php
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-05-24 13:02:07 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-05-24 13:02:07 +0200
commit4dfc839f870908155b0617624f968f4849eebb91 (patch)
treea3dd0e34309225d61687118115b5eafa5af850d5 /apps/files/tests/Controller/ApiControllerTest.php
parent45a75c631e638ccab8934584aedad834229d10a7 (diff)
downloadnextcloud-server-4dfc839f870908155b0617624f968f4849eebb91.tar.gz
nextcloud-server-4dfc839f870908155b0617624f968f4849eebb91.zip
Remove at() matcher for tests for files app
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/files/tests/Controller/ApiControllerTest.php')
-rw-r--r--apps/files/tests/Controller/ApiControllerTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files/tests/Controller/ApiControllerTest.php b/apps/files/tests/Controller/ApiControllerTest.php
index 73728bd6a4a..64c70fb2de6 100644
--- a/apps/files/tests/Controller/ApiControllerTest.php
+++ b/apps/files/tests/Controller/ApiControllerTest.php
@@ -201,12 +201,12 @@ class ApiControllerTest extends TestCase {
$mode = 'mtime';
$direction = 'desc';
- $this->config->expects($this->at(0))
+ $this->config->expects($this->exactly(2))
->method('setUserValue')
- ->with($this->user->getUID(), 'files', 'file_sorting', $mode);
- $this->config->expects($this->at(1))
- ->method('setUserValue')
- ->with($this->user->getUID(), 'files', 'file_sorting_direction', $direction);
+ ->withConsecutive(
+ [$this->user->getUID(), 'files', 'file_sorting', $mode],
+ [$this->user->getUID(), 'files', 'file_sorting_direction', $direction],
+ );
$expected = new HTTP\Response();
$actual = $this->apiController->updateFileSorting($mode, $direction);