aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/AppFramework/Http
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-07-23 13:36:32 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-07-23 17:11:29 +0200
commit0123cd0ae345ae6c90955ea79331a48f7c5cf95d (patch)
tree55d14965b30c6bf23cd200c26ec663a93767f910 /tests/lib/AppFramework/Http
parentf8955bd0d1fe3e51d88831bc4f4c934bdef1256a (diff)
downloadnextcloud-server-0123cd0ae345ae6c90955ea79331a48f7c5cf95d.tar.gz
nextcloud-server-0123cd0ae345ae6c90955ea79331a48f7c5cf95d.zip
Use assertStringContainsString instead of assertContains on strings
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests/lib/AppFramework/Http')
-rw-r--r--tests/lib/AppFramework/Http/DownloadResponseTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/AppFramework/Http/DownloadResponseTest.php b/tests/lib/AppFramework/Http/DownloadResponseTest.php
index 1ad53f5db13..6c509b8bc59 100644
--- a/tests/lib/AppFramework/Http/DownloadResponseTest.php
+++ b/tests/lib/AppFramework/Http/DownloadResponseTest.php
@@ -45,7 +45,7 @@ class DownloadResponseTest extends \Test\TestCase {
public function testHeaders() {
$headers = $this->response->getHeaders();
- $this->assertContains('attachment; filename="file"', $headers['Content-Disposition']);
- $this->assertContains('content', $headers['Content-Type']);
+ $this->assertStringContainsString('attachment; filename="file"', $headers['Content-Disposition']);
+ $this->assertStringContainsString('content', $headers['Content-Type']);
}
}