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 'tests/lib/Files/Mount/ObjectHomeMountProviderTest.php')
-rw-r--r--tests/lib/Files/Mount/ObjectHomeMountProviderTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/lib/Files/Mount/ObjectHomeMountProviderTest.php b/tests/lib/Files/Mount/ObjectHomeMountProviderTest.php
index ea414679888..5dc93660d9c 100644
--- a/tests/lib/Files/Mount/ObjectHomeMountProviderTest.php
+++ b/tests/lib/Files/Mount/ObjectHomeMountProviderTest.php
@@ -54,7 +54,7 @@ class ObjectHomeMountProviderTest extends \Test\TestCase {
}
public function testMultiBucket() {
- $this->config->expects($this->once())
+ $this->config->expects($this->exactly(2))
->method('getSystemValue')
->with($this->equalTo('objectstore_multibucket'), '')
->willReturn([
@@ -98,9 +98,9 @@ class ObjectHomeMountProviderTest extends \Test\TestCase {
}
public function testMultiBucketWithPrefix() {
- $this->config->expects($this->once())
+ $this->config->expects($this->exactly(2))
->method('getSystemValue')
- ->with($this->equalTo('objectstore_multibucket'), '')
+ ->with('objectstore_multibucket')
->willReturn([
'class' => 'Test\Files\Mount\FakeObjectStore',
'arguments' => [
@@ -147,7 +147,7 @@ class ObjectHomeMountProviderTest extends \Test\TestCase {
public function testMultiBucketBucketAlreadySet() {
$this->config->expects($this->once())
->method('getSystemValue')
- ->with($this->equalTo('objectstore_multibucket'), '')
+ ->with('objectstore_multibucket')
->willReturn([
'class' => 'Test\Files\Mount\FakeObjectStore',
'arguments' => [
@@ -185,9 +185,9 @@ class ObjectHomeMountProviderTest extends \Test\TestCase {
}
public function testMultiBucketConfigFirst() {
- $this->config->expects($this->once())
+ $this->config->expects($this->exactly(2))
->method('getSystemValue')
- ->with($this->equalTo('objectstore_multibucket'))
+ ->with('objectstore_multibucket')
->willReturn([
'class' => 'Test\Files\Mount\FakeObjectStore',
]);