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-04-09 10:22:29 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 11:16:08 +0300
commit2fbad1ed72bc9ef591a6f35558eb02e7b76ffd1b (patch)
treea3da09ffec08d6c8abc3bf0fabb7f8c8a1c830f6 /tests/lib/AppFramework/Http
parent1575bd838f2e938b18b04bcdcc28e2fc24d95c45 (diff)
Fix (array) indent style to always use one tab
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests/lib/AppFramework/Http')
-rw-r--r--tests/lib/AppFramework/Http/DispatcherTest.php4
-rw-r--r--tests/lib/AppFramework/Http/OCSResponseTest.php60
2 files changed, 32 insertions, 32 deletions
diff --git a/tests/lib/AppFramework/Http/DispatcherTest.php b/tests/lib/AppFramework/Http/DispatcherTest.php
index b6b43d4a5d3..d6af034e95e 100644
--- a/tests/lib/AppFramework/Http/DispatcherTest.php
+++ b/tests/lib/AppFramework/Http/DispatcherTest.php
@@ -296,8 +296,8 @@ class DispatcherTest extends \Test\TestCase {
$this->request = new Request(
[
'post' => [
- 'int' => '3',
- 'bool' => 'false'
+ 'int' => '3',
+ 'bool' => 'false'
],
'method' => 'POST'
],
diff --git a/tests/lib/AppFramework/Http/OCSResponseTest.php b/tests/lib/AppFramework/Http/OCSResponseTest.php
index e092cb53f58..223248c8737 100644
--- a/tests/lib/AppFramework/Http/OCSResponseTest.php
+++ b/tests/lib/AppFramework/Http/OCSResponseTest.php
@@ -29,42 +29,42 @@ use OCP\AppFramework\Http\OCSResponse;
class OCSResponseTest extends \Test\TestCase {
- public function testHeadersJSON() {
- $response = new OCSResponse('json', 1, 2, 3);
- $type = $response->getHeaders()['Content-Type'];
- $this->assertEquals('application/json; charset=utf-8', $type);
- }
+ public function testHeadersJSON() {
+ $response = new OCSResponse('json', 1, 2, 3);
+ $type = $response->getHeaders()['Content-Type'];
+ $this->assertEquals('application/json; charset=utf-8', $type);
+ }
- public function testHeadersXML() {
- $response = new OCSResponse('xml', 1, 2, 3);
- $type = $response->getHeaders()['Content-Type'];
- $this->assertEquals('application/xml; charset=utf-8', $type);
- }
+ public function testHeadersXML() {
+ $response = new OCSResponse('xml', 1, 2, 3);
+ $type = $response->getHeaders()['Content-Type'];
+ $this->assertEquals('application/xml; charset=utf-8', $type);
+ }
- public function testRender() {
- $response = new OCSResponse(
- 'xml', 2, 'message', ['test' => 'hi'], 3, 4
- );
- $out = $response->render();
- $expected = "<?xml version=\"1.0\"?>\n" .
- "<ocs>\n" .
- " <meta>\n" .
- " <status>failure</status>\n" .
- " <statuscode>2</statuscode>\n" .
- " <message>message</message>\n" .
- " <totalitems>3</totalitems>\n" .
- " <itemsperpage>4</itemsperpage>\n" .
- " </meta>\n" .
- " <data>\n" .
- " <test>hi</test>\n" .
- " </data>\n" .
- "</ocs>\n";
+ public function testRender() {
+ $response = new OCSResponse(
+ 'xml', 2, 'message', ['test' => 'hi'], 3, 4
+ );
+ $out = $response->render();
+ $expected = "<?xml version=\"1.0\"?>\n" .
+ "<ocs>\n" .
+ " <meta>\n" .
+ " <status>failure</status>\n" .
+ " <statuscode>2</statuscode>\n" .
+ " <message>message</message>\n" .
+ " <totalitems>3</totalitems>\n" .
+ " <itemsperpage>4</itemsperpage>\n" .
+ " </meta>\n" .
+ " <data>\n" .
+ " <test>hi</test>\n" .
+ " </data>\n" .
+ "</ocs>\n";
- $this->assertEquals($expected, $out);
+ $this->assertEquals($expected, $out);
- }
+ }
}