aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/AppFramework/Http
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-07-23 21:38:22 +0200
committerGitHub <noreply@github.com>2020-07-23 21:38:22 +0200
commita169bd243ff4b014fa4238845dbebbbc2a4d1021 (patch)
treea1fee830c286b0911aae9f4c141572a92261080d /tests/lib/AppFramework/Http
parent173f8abc7ed48d2436d8df10ad66bc4907d4bb52 (diff)
parent761cdf9877be6d286f96e1f3eb4beab052b89baa (diff)
downloadnextcloud-server-a169bd243ff4b014fa4238845dbebbbc2a4d1021.tar.gz
nextcloud-server-a169bd243ff4b014fa4238845dbebbbc2a4d1021.zip
Merge pull request #21972 from nextcloud/techdebt/noid/cleanup-phpunit-warnings
Fix PHPUnit deprecation warnings
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']);
}
}