diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-06-20 10:53:06 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-06-20 10:53:06 +0200 |
commit | 6a1510f8ee48494a19dc1239fd2584dc2188e18d (patch) | |
tree | 44268aa4e7afce7531cddb4cf91f3a72bbca4c13 /tests/lib/Files/Mount/ObjectHomeMountProviderTest.php | |
parent | c7e1c36362a7e4de5a7d074ab43f97c2559e06ea (diff) | |
download | nextcloud-server-6a1510f8ee48494a19dc1239fd2584dc2188e18d.tar.gz nextcloud-server-6a1510f8ee48494a19dc1239fd2584dc2188e18d.zip |
Remove some more at matchers in tests/lib
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests/lib/Files/Mount/ObjectHomeMountProviderTest.php')
-rw-r--r-- | tests/lib/Files/Mount/ObjectHomeMountProviderTest.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/lib/Files/Mount/ObjectHomeMountProviderTest.php b/tests/lib/Files/Mount/ObjectHomeMountProviderTest.php index 5dc93660d9c..7ce87140122 100644 --- a/tests/lib/Files/Mount/ObjectHomeMountProviderTest.php +++ b/tests/lib/Files/Mount/ObjectHomeMountProviderTest.php @@ -201,17 +201,17 @@ class ObjectHomeMountProviderTest extends \Test\TestCase { } public function testMultiBucketConfigFirstFallBackSingle() { - $this->config->expects($this->at(0)) - ->method('getSystemValue') - ->with($this->equalTo('objectstore_multibucket')) - ->willReturn(''); - - $this->config->expects($this->at(1)) + $this->config->expects($this->exactly(2)) ->method('getSystemValue') - ->with($this->equalTo('objectstore')) - ->willReturn([ - 'class' => 'Test\Files\Mount\FakeObjectStore', - ]); + ->withConsecutive( + [$this->equalTo('objectstore_multibucket')], + [$this->equalTo('objectstore')], + )->willReturnOnConsecutiveCalls( + '', + [ + 'class' => 'Test\Files\Mount\FakeObjectStore', + ], + ); $this->user->method('getUID') ->willReturn('uid'); |