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:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-10-05 16:12:57 +0300
committerMorris Jobke <hey@morrisjobke.de>2020-10-05 21:25:24 +0300
commitd9015a8c94bfd71fe484618a06d276701d3bf9ff (patch)
tree3f7a1cd6ec2fd982dd02de71b76076f7f01cef70 /apps/files_external/tests
parentd357f4b10fe1b59e1e07bb90641d647522c7bfe2 (diff)
Format code to a single space around binary operators
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/files_external/tests')
-rw-r--r--apps/files_external/tests/Controller/AjaxControllerTest.php2
-rw-r--r--apps/files_external/tests/Settings/AdminTest.php16
-rw-r--r--apps/files_external/tests/Storage/FtpTest.php2
-rw-r--r--apps/files_external/tests/config.php88
4 files changed, 54 insertions, 54 deletions
diff --git a/apps/files_external/tests/Controller/AjaxControllerTest.php b/apps/files_external/tests/Controller/AjaxControllerTest.php
index a4f91de1979..1c4cb232ed0 100644
--- a/apps/files_external/tests/Controller/AjaxControllerTest.php
+++ b/apps/files_external/tests/Controller/AjaxControllerTest.php
@@ -80,7 +80,7 @@ class AjaxControllerTest extends TestCase {
'publickey' => 'MyPublicKey',
]);
- $expected = new JSONResponse(
+ $expected = new JSONResponse(
[
'data' => [
'private_key' => 'MyPrivateKey',
diff --git a/apps/files_external/tests/Settings/AdminTest.php b/apps/files_external/tests/Settings/AdminTest.php
index e1cb491fca6..3f58ce8e685 100644
--- a/apps/files_external/tests/Settings/AdminTest.php
+++ b/apps/files_external/tests/Settings/AdminTest.php
@@ -91,14 +91,14 @@ class AdminTest extends TestCase {
->with('')
->willReturn('asdf:asdf');
$params = [
- 'encryptionEnabled' => false,
- 'visibilityType' => BackendService::VISIBILITY_ADMIN,
- 'storages' => ['a', 'b', 'c'],
- 'backends' => ['d', 'e', 'f'],
- 'authMechanisms' => ['g', 'h', 'i'],
- 'dependencies' => \OCA\Files_External\MountConfig::dependencyMessage($this->backendService->getBackends()),
- 'allowUserMounting' => true,
- 'globalCredentials' => 'asdf:asdf',
+ 'encryptionEnabled' => false,
+ 'visibilityType' => BackendService::VISIBILITY_ADMIN,
+ 'storages' => ['a', 'b', 'c'],
+ 'backends' => ['d', 'e', 'f'],
+ 'authMechanisms' => ['g', 'h', 'i'],
+ 'dependencies' => \OCA\Files_External\MountConfig::dependencyMessage($this->backendService->getBackends()),
+ 'allowUserMounting' => true,
+ 'globalCredentials' => 'asdf:asdf',
'globalCredentialsUid' => '',
];
$expected = new TemplateResponse('files_external', 'settings', $params, '');
diff --git a/apps/files_external/tests/Storage/FtpTest.php b/apps/files_external/tests/Storage/FtpTest.php
index d9a90f5b19f..5b1c15e5a5b 100644
--- a/apps/files_external/tests/Storage/FtpTest.php
+++ b/apps/files_external/tests/Storage/FtpTest.php
@@ -63,7 +63,7 @@ class FtpTest extends \Test\Files\Storage\Storage {
}
public function testConstructUrl() {
- $config = [ 'host' => 'localhost',
+ $config = [ 'host' => 'localhost',
'user' => 'ftp',
'password' => 'ftp',
'root' => '/',
diff --git a/apps/files_external/tests/config.php b/apps/files_external/tests/config.php
index 21e6536acd5..5f35b937df4 100644
--- a/apps/files_external/tests/config.php
+++ b/apps/files_external/tests/config.php
@@ -35,30 +35,30 @@ if (file_exists($privateConfigFile)) {
// this is now more a template now for your private configurations
return [
- 'ftp'=>[
- 'run'=>false,
- 'host'=>'localhost',
- 'user'=>'test',
- 'password'=>'test',
- 'root'=>'/test',
+ 'ftp' => [
+ 'run' => false,
+ 'host' => 'localhost',
+ 'user' => 'test',
+ 'password' => 'test',
+ 'root' => '/test',
],
- 'webdav'=>[
- 'run'=>false,
- 'host'=>'localhost',
- 'user'=>'test',
- 'password'=>'test',
- 'root'=>'',
+ 'webdav' => [
+ 'run' => false,
+ 'host' => 'localhost',
+ 'user' => 'test',
+ 'password' => 'test',
+ 'root' => '',
// wait delay in seconds after write operations
// (only in tests)
// set to higher value for lighttpd webdav
- 'wait'=> 0
+ 'wait' => 0
],
- 'owncloud'=>[
- 'run'=>false,
- 'host'=>'localhost/owncloud',
- 'user'=>'test',
- 'password'=>'test',
- 'root'=>'',
+ 'owncloud' => [
+ 'run' => false,
+ 'host' => 'localhost/owncloud',
+ 'user' => 'test',
+ 'password' => 'test',
+ 'root' => '',
],
'swift' => [
'run' => false,
@@ -72,19 +72,19 @@ return [
//'url' => 'https://identity.api.rackspacecloud.com/v2.0/', //to be used with Rackspace Cloud Files and OpenStack Object Storage
//'timeout' => 5 // timeout of HTTP requests in seconds
],
- 'smb'=>[
- 'run'=>false,
- 'user'=>'test',
- 'password'=>'test',
- 'host'=>'localhost',
- 'share'=>'/test',
- 'root'=>'/test/',
+ 'smb' => [
+ 'run' => false,
+ 'user' => 'test',
+ 'password' => 'test',
+ 'host' => 'localhost',
+ 'share' => '/test',
+ 'root' => '/test/',
],
- 'amazons3'=>[
- 'run'=>false,
- 'key'=>'test',
- 'secret'=>'test',
- 'bucket'=>'bucket'
+ 'amazons3' => [
+ 'run' => false,
+ 'key' => 'test',
+ 'secret' => 'test',
+ 'bucket' => 'bucket'
//'hostname' => 'your.host.name',
//'port' => '443',
//'use_ssl' => 'true',
@@ -92,19 +92,19 @@ return [
//'test'=>'true',
//'timeout'=>20
],
- 'sftp' => [
- 'run'=>false,
- 'host'=>'localhost',
- 'user'=>'test',
- 'password'=>'test',
- 'root'=>'/test'
+ 'sftp' => [
+ 'run' => false,
+ 'host' => 'localhost',
+ 'user' => 'test',
+ 'password' => 'test',
+ 'root' => '/test'
],
- 'sftp_key' => [
- 'run'=>false,
- 'host'=>'localhost',
- 'user'=>'test',
- 'public_key'=>'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDJPTvz3OLonF2KSGEKP/nd4CPmRYvemG2T4rIiNYjDj0U5y+2sKEWbjiUlQl2bsqYuVoJ+/UNJlGQbbZ08kQirFeo1GoWBzqioaTjUJfbLN6TzVVKXxR9YIVmH7Ajg2iEeGCndGgbmnPfj+kF9TR9IH8vMVvtubQwf7uEwB0ALhw== phpseclib-generated-key',
- 'private_key'=>'test',
- 'root'=>'/test'
+ 'sftp_key' => [
+ 'run' => false,
+ 'host' => 'localhost',
+ 'user' => 'test',
+ 'public_key' => 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDJPTvz3OLonF2KSGEKP/nd4CPmRYvemG2T4rIiNYjDj0U5y+2sKEWbjiUlQl2bsqYuVoJ+/UNJlGQbbZ08kQirFeo1GoWBzqioaTjUJfbLN6TzVVKXxR9YIVmH7Ajg2iEeGCndGgbmnPfj+kF9TR9IH8vMVvtubQwf7uEwB0ALhw== phpseclib-generated-key',
+ 'private_key' => 'test',
+ 'root' => '/test'
],
];