diff options
Diffstat (limited to 'apps/files/tests/Controller/ApiControllerTest.php')
-rw-r--r-- | apps/files/tests/Controller/ApiControllerTest.php | 10 |
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); |