summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Http/TextResponseTest.php
diff options
context:
space:
mode:
authorSean Molenaar <sean@seanmolenaar.eu>2020-09-29 13:54:17 +0200
committerBenjamin Brahmer <info@b-brahmer.de>2020-09-29 14:56:07 +0200
commit35b53ecd404a74edea3c6866e451c4819bdc9ea8 (patch)
treedac46834d8fa7ec0122243f94604c3d2215b4d22 /tests/Unit/Http/TextResponseTest.php
parentd6d169be15913404f99b86c39a03bc71942c9f77 (diff)
OPML export command and fixes
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'tests/Unit/Http/TextResponseTest.php')
-rw-r--r--tests/Unit/Http/TextResponseTest.php51
1 files changed, 0 insertions, 51 deletions
diff --git a/tests/Unit/Http/TextResponseTest.php b/tests/Unit/Http/TextResponseTest.php
deleted file mode 100644
index eaad769b5..000000000
--- a/tests/Unit/Http/TextResponseTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Nextcloud - News
- *
- * This file is licensed under the Affero General Public License version 3 or
- * later. See the COPYING file.
- *
- * @author Alessandro Cosentino <cosenal@gmail.com>
- * @author Bernhard Posselt <dev@bernhard-posselt.com>
- * @copyright 2012 Alessandro Cosentino
- * @copyright 2012-2014 Bernhard Posselt
- */
-
-
-namespace OCA\News\Tests\Unit\Http;
-
-use PHPUnit\Framework\TestCase;
-use OCA\News\Http\TextResponse;
-
-class TextResponseTest extends TestCase
-{
-
-
- protected function setUp(): void
- {
- $this->response = new TextResponse('sometext');
- }
-
-
- public function testRender()
- {
- $this->assertEquals('sometext', $this->response->render());
- }
-
- public function testContentTypeDefaultsToText()
- {
- $headers = $this->response->getHeaders();
-
- $this->assertEquals('text/plain', $headers['Content-type']);
- }
-
-
- public function testContentTypeIsSetableViaConstructor()
- {
- $response = new TextResponse('sometext', 'html');
- $headers = $response->getHeaders();
-
- $this->assertEquals('text/html', $headers['Content-type']);
- }
-
-} \ No newline at end of file