summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@owncloud.com>2015-09-01 10:29:49 +0100
committerRobin McCorkell <rmccorkell@owncloud.com>2015-09-01 10:29:49 +0100
commit23e4b6e0c2e46a7f35d1256555d3d213292c9fa1 (patch)
tree822c126b7b02021d17f7cf0592bfd1ab30d98c84 /apps/files_external
parentcd506f210de329853e6df625fd8c36d13f333dce (diff)
downloadnextcloud-server-23e4b6e0c2e46a7f35d1256555d3d213292c9fa1.tar.gz
nextcloud-server-23e4b6e0c2e46a7f35d1256555d3d213292c9fa1.zip
Test legacy backend with no dependency check
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/tests/backend/legacybackendtest.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/apps/files_external/tests/backend/legacybackendtest.php b/apps/files_external/tests/backend/legacybackendtest.php
index 4db8ac5d8df..d57810de29b 100644
--- a/apps/files_external/tests/backend/legacybackendtest.php
+++ b/apps/files_external/tests/backend/legacybackendtest.php
@@ -92,4 +92,22 @@ class LegacyBackendTest extends \Test\TestCase {
$this->assertEquals(DefinitionParameter::FLAG_OPTIONAL, $parameters['optionalpassword']->getFlags());
}
+ public function testNoDependencies() {
+ $auth = $this->getMockBuilder('\OCA\Files_External\Lib\Auth\Builtin')
+ ->disableOriginalConstructor()
+ ->getMock();
+
+ $class = '\OCA\Files_External\Tests\Backend\LegacyBackendTest';
+ $definition = [
+ 'configuration' => [
+ ],
+ 'backend' => 'Backend text',
+ ];
+
+ $backend = new LegacyBackend($class, $definition, $auth);
+
+ $dependencies = $backend->checkDependencies();
+ $this->assertCount(0, $dependencies);
+ }
+
}