summaryrefslogtreecommitdiffstats
path: root/tests/unit/http
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/http')
-rw-r--r--tests/unit/http/TextDownloadResponseTest.php12
-rw-r--r--tests/unit/http/TextResponseTest.php30
2 files changed, 21 insertions, 21 deletions
diff --git a/tests/unit/http/TextDownloadResponseTest.php b/tests/unit/http/TextDownloadResponseTest.php
index 47ee657cd..d78464e68 100644
--- a/tests/unit/http/TextDownloadResponseTest.php
+++ b/tests/unit/http/TextDownloadResponseTest.php
@@ -18,13 +18,13 @@ namespace OCA\News\Http;
class TextDownloadResponseTest extends \PHPUnit_Framework_TestCase {
- protected function setUp() {
- $this->response = new TextDownloadResponse('sometext', 'file', 'content');
- }
+ protected function setUp() {
+ $this->response = new TextDownloadResponse('sometext', 'file', 'content');
+ }
- public function testRender() {
- $this->assertEquals('sometext', $this->response->render());
- }
+ public function testRender() {
+ $this->assertEquals('sometext', $this->response->render());
+ }
} \ No newline at end of file
diff --git a/tests/unit/http/TextResponseTest.php b/tests/unit/http/TextResponseTest.php
index c0b5ca3a0..790cbe340 100644
--- a/tests/unit/http/TextResponseTest.php
+++ b/tests/unit/http/TextResponseTest.php
@@ -18,27 +18,27 @@ namespace OCA\News\Http;
class TextResponseTest extends \PHPUnit_Framework_TestCase {
- protected function setUp() {
- $this->response = new TextResponse('sometext');
- }
+ protected function setUp() {
+ $this->response = new TextResponse('sometext');
+ }
- public function testRender() {
- $this->assertEquals('sometext', $this->response->render());
- }
+ public function testRender() {
+ $this->assertEquals('sometext', $this->response->render());
+ }
- public function testContentTypeDefaultsToText(){
- $headers = $this->response->getHeaders();
+ public function testContentTypeDefaultsToText(){
+ $headers = $this->response->getHeaders();
- $this->assertEquals('text/plain', $headers['Content-type']);
- }
+ $this->assertEquals('text/plain', $headers['Content-type']);
+ }
- public function testContentTypeIsSetableViaConstructor(){
- $response = new TextResponse('sometext', 'html');
- $headers = $response->getHeaders();
+ public function testContentTypeIsSetableViaConstructor(){
+ $response = new TextResponse('sometext', 'html');
+ $headers = $response->getHeaders();
- $this->assertEquals('text/html', $headers['Content-type']);
- }
+ $this->assertEquals('text/html', $headers['Content-type']);
+ }
} \ No newline at end of file