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
diff options
context:
space:
mode:
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);