aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/tests/Controller/ViewControllerTest.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/ViewControllerTest.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/ViewControllerTest.php')
-rw-r--r--apps/files/tests/Controller/ViewControllerTest.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/files/tests/Controller/ViewControllerTest.php b/apps/files/tests/Controller/ViewControllerTest.php
index cebb50860d3..38f3670d4ca 100644
--- a/apps/files/tests/Controller/ViewControllerTest.php
+++ b/apps/files/tests/Controller/ViewControllerTest.php
@@ -442,11 +442,11 @@ class ViewControllerTest extends TestCase {
->with('testuser1')
->willReturn($baseFolder);
- $baseFolder->expects($this->at(0))
+ $baseFolder->expects($this->once())
->method('getById')
->with(123)
->willReturn([$node]);
- $baseFolder->expects($this->at(1))
+ $baseFolder->expects($this->once())
->method('getRelativePath')
->with('/testuser1/files/test/sub')
->willReturn('/test/sub');
@@ -482,11 +482,11 @@ class ViewControllerTest extends TestCase {
->method('getName')
->willReturn('somefile.txt');
- $baseFolder->expects($this->at(0))
+ $baseFolder->expects($this->once())
->method('getById')
->with(123)
->willReturn([$node]);
- $baseFolder->expects($this->at(1))
+ $baseFolder->expects($this->once())
->method('getRelativePath')
->with('testuser1/files/test')
->willReturn('/test');
@@ -508,7 +508,7 @@ class ViewControllerTest extends TestCase {
->with('testuser1')
->willReturn($baseFolder);
- $baseFolder->expects($this->at(0))
+ $baseFolder->expects($this->once())
->method('getById')
->with(123)
->willReturn([]);
@@ -537,11 +537,11 @@ class ViewControllerTest extends TestCase {
$baseFolderFiles = $this->getMockBuilder(Folder::class)->getMock();
$baseFolderTrash = $this->getMockBuilder(Folder::class)->getMock();
- $this->rootFolder->expects($this->at(0))
+ $this->rootFolder->expects($this->once())
->method('getUserFolder')
->with('testuser1')
->willReturn($baseFolderFiles);
- $this->rootFolder->expects($this->at(1))
+ $this->rootFolder->expects($this->once())
->method('get')
->with('testuser1/files_trashbin/files/')
->willReturn($baseFolderTrash);
@@ -559,11 +559,11 @@ class ViewControllerTest extends TestCase {
->method('getName')
->willReturn('somefile.txt');
- $baseFolderTrash->expects($this->at(0))
+ $baseFolderTrash->expects($this->once())
->method('getById')
->with(123)
->willReturn([$node]);
- $baseFolderTrash->expects($this->at(1))
+ $baseFolderTrash->expects($this->once())
->method('getRelativePath')
->with('testuser1/files_trashbin/files/test.d1462861890/sub')
->willReturn('/test.d1462861890/sub');