Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/PHPUnit/Integration/Settings/Storage/FactoryTest.php')
-rw-r--r--tests/PHPUnit/Integration/Settings/Storage/FactoryTest.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/PHPUnit/Integration/Settings/Storage/FactoryTest.php b/tests/PHPUnit/Integration/Settings/Storage/FactoryTest.php
index fb25bbf13b..82acc03ec3 100644
--- a/tests/PHPUnit/Integration/Settings/Storage/FactoryTest.php
+++ b/tests/PHPUnit/Integration/Settings/Storage/FactoryTest.php
@@ -144,4 +144,14 @@ class FactoryTest extends IntegrationTestCase
$this->assertSame('', $storage->getValue('mytest', $default = '', FieldConfig::TYPE_STRING));
}
+ public function test_makeStorage_returnsStorageWithGivenBackend()
+ {
+ $backend = new NullBackend('test');
+ $storage = $this->factory->makeStorage($backend);
+
+ $this->assertTrue($storage instanceof Storage);
+
+ $this->assertSame($backend, $storage->getBackend());
+ }
+
}