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

github.com/nextcloud/jsxc.nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsualko <klaus@jsxc.org>2019-02-28 14:44:17 +0300
committersualko <klaus@jsxc.org>2019-02-28 14:44:17 +0300
commitfd3644e4b1ebc420eda67fe441a802ac74040f29 (patch)
tree7ef7bcc45745b3e473f51ccaeb059616ada33363 /tests/unit
parent5361103d7963470c7b104f0e4e9a74b67c0437b3 (diff)
chore: beautify files
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/Middleware/ExternalApiMiddlewareTest.php6
-rw-r--r--tests/unit/TimeLimitedTokenTest.php28
-rw-r--r--tests/unit/controller/ExternalApiControllerTest.php12
-rw-r--r--tests/unit/controller/HttpBindControllerTest.php2
-rw-r--r--tests/unit/controller/ManagedServerControllerTest.php20
-rw-r--r--tests/unit/controller/SettingsControllerTest.php10
6 files changed, 39 insertions, 39 deletions
diff --git a/tests/unit/Middleware/ExternalApiMiddlewareTest.php b/tests/unit/Middleware/ExternalApiMiddlewareTest.php
index 31542d4..beeae80 100644
--- a/tests/unit/Middleware/ExternalApiMiddlewareTest.php
+++ b/tests/unit/Middleware/ExternalApiMiddlewareTest.php
@@ -29,9 +29,9 @@ class ExternalApiMiddlewareTest extends TestCase
$this->rawRequest = $this->createMock(RawRequest::class);
$this->externalApiMiddleware = new ExternalApiMiddleware(
- $this->request,
- $this->config,
- $this->rawRequest
+ $this->request,
+ $this->config,
+ $this->rawRequest
);
}
diff --git a/tests/unit/TimeLimitedTokenTest.php b/tests/unit/TimeLimitedTokenTest.php
index 7142728..d6667c7 100644
--- a/tests/unit/TimeLimitedTokenTest.php
+++ b/tests/unit/TimeLimitedTokenTest.php
@@ -9,41 +9,41 @@ class TimeLimitedTokenTest extends TestCase
public function testGenerateUser()
{
$this->assertEquals(
- 'AJP4Mvv5P8qZZJcENQhzfH$ruF%1458',
- TimeLimitedToken::generateUser('foo', 'bar', 'secret', 60 * 60, 1500894607)
+ 'AJP4Mvv5P8qZZJcENQhzfH$ruF%1458',
+ TimeLimitedToken::generateUser('foo', 'bar', 'secret', 60 * 60, 1500894607)
);
$this->assertEquals(
- 'AELcjDTQjxEJptXaWb29gkt+LF%2Yi8',
- TimeLimitedToken::generateUser('foo-bar', 'localhost.xyz', 'AJP4Mvv5P8', 60 * 60 * 10, 1500894607)
+ 'AELcjDTQjxEJptXaWb29gkt+LF%2Yi8',
+ TimeLimitedToken::generateUser('foo-bar', 'localhost.xyz', 'AJP4Mvv5P8', 60 * 60 * 10, 1500894607)
);
$this->assertEquals(
- 'AEU+Upmh-jRtoHQ2Um1cYMcMV1%2Yi8',
- TimeLimitedToken::generateUser('foo.bar', 'local.host.xyz', 'iiGTp+LF%2', 60 * 60 * 10, 1500894607)
+ 'AEU+Upmh-jRtoHQ2Um1cYMcMV1%2Yi8',
+ TimeLimitedToken::generateUser('foo.bar', 'local.host.xyz', 'iiGTp+LF%2', 60 * 60 * 10, 1500894607)
);
}
public function testGenerateTURN()
{
$this->assertEquals(
- [(60 * 60 + 1500894607).':foobar', 'u66TdvZP9USnoCeOBFtVQa4DCkw='],
- TimeLimitedToken::generateTURN('foobar', 'secret', 60 * 60, 1500894607)
+ [(60 * 60 + 1500894607).':foobar', 'u66TdvZP9USnoCeOBFtVQa4DCkw='],
+ TimeLimitedToken::generateTURN('foobar', 'secret', 60 * 60, 1500894607)
);
$this->assertEquals(
- [(3600 * 24 + 1500894607).':foo.bar', 'zfLkyJlJPx+KnLo5eLEUwJXDbGo='],
- TimeLimitedToken::generateTURN('foo.bar', 'CeOBFtVQa', 3600 * 24, 1500894607)
+ [(3600 * 24 + 1500894607).':foo.bar', 'zfLkyJlJPx+KnLo5eLEUwJXDbGo='],
+ TimeLimitedToken::generateTURN('foo.bar', 'CeOBFtVQa', 3600 * 24, 1500894607)
);
$this->assertEquals(
- [(3600 * 24 + 1500894607).':foo:bar', 'e+dKdn0JtGWccYCJ3NKaDUD6JZk='],
- TimeLimitedToken::generateTURN('foo:bar', 'nLo5eLEUwJXD', 3600 * 24, 1500894607)
+ [(3600 * 24 + 1500894607).':foo:bar', 'e+dKdn0JtGWccYCJ3NKaDUD6JZk='],
+ TimeLimitedToken::generateTURN('foo:bar', 'nLo5eLEUwJXD', 3600 * 24, 1500894607)
);
$this->assertEquals(
- [(3600 * 24 + 1500894607).':foobar', 'q01XUfO0p37h5dGDd5R2PO2RhpM='],
- TimeLimitedToken::generateTURN('foobar', 'nLo5eLEUwJXD', 3600 * 24, 1500894607)
+ [(3600 * 24 + 1500894607).':foobar', 'q01XUfO0p37h5dGDd5R2PO2RhpM='],
+ TimeLimitedToken::generateTURN('foobar', 'nLo5eLEUwJXD', 3600 * 24, 1500894607)
);
}
}
diff --git a/tests/unit/controller/ExternalApiControllerTest.php b/tests/unit/controller/ExternalApiControllerTest.php
index 751249f..d307d6c 100644
--- a/tests/unit/controller/ExternalApiControllerTest.php
+++ b/tests/unit/controller/ExternalApiControllerTest.php
@@ -36,12 +36,12 @@ class ExternalApiControllerTest extends TestCase
$this->user = $this->createMock(IUser::class);
$this->externalApiController = new ExternalApiController(
- 'ojsxc',
- $this->request,
- $this->userManager,
- $this->userSession,
- $this->groupManager,
- $this->logger
+ 'ojsxc',
+ $this->request,
+ $this->userManager,
+ $this->userSession,
+ $this->groupManager,
+ $this->logger
);
}
diff --git a/tests/unit/controller/HttpBindControllerTest.php b/tests/unit/controller/HttpBindControllerTest.php
index 0345132..55d5ffb 100644
--- a/tests/unit/controller/HttpBindControllerTest.php
+++ b/tests/unit/controller/HttpBindControllerTest.php
@@ -403,7 +403,7 @@ XML;
->method('handle')
->withConsecutive(
$this->equalTo(
- [ 'name' => '{jabber:client}message',
+ [ 'name' => '{jabber:client}message',
' value' => [
'{jabber:client}body' => 'abc',
],
diff --git a/tests/unit/controller/ManagedServerControllerTest.php b/tests/unit/controller/ManagedServerControllerTest.php
index 131cba1..6737ac3 100644
--- a/tests/unit/controller/ManagedServerControllerTest.php
+++ b/tests/unit/controller/ManagedServerControllerTest.php
@@ -71,16 +71,16 @@ class ManagedServerControllerTest extends TestCase
->willReturn($this->createUserMock($this->userId));
$this->managedServerController = new ManagedServerController(
- 'ojsxc',
- $this->request,
- $this->urlGenerator,
- $this->config,
- $this->userSession,
- $this->logger,
- $this->dataRetriever,
- $this->random,
- $this->appManager,
- $this->registrationUrl
+ 'ojsxc',
+ $this->request,
+ $this->urlGenerator,
+ $this->config,
+ $this->userSession,
+ $this->logger,
+ $this->dataRetriever,
+ $this->random,
+ $this->appManager,
+ $this->registrationUrl
);
}
diff --git a/tests/unit/controller/SettingsControllerTest.php b/tests/unit/controller/SettingsControllerTest.php
index 5bf620e..f9d8f09 100644
--- a/tests/unit/controller/SettingsControllerTest.php
+++ b/tests/unit/controller/SettingsControllerTest.php
@@ -27,11 +27,11 @@ class SettingsControllerTest extends TestCase
$this->userSession = $this->createMock(IUserSession::class);
$this->settingsController = new SettingsController(
- 'ojsxc',
- $this->request,
- $this->config,
- $this->userManager,
- $this->userSession
+ 'ojsxc',
+ $this->request,
+ $this->config,
+ $this->userManager,
+ $this->userSession
);
}