diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-07-23 21:38:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-23 21:38:22 +0200 |
commit | a169bd243ff4b014fa4238845dbebbbc2a4d1021 (patch) | |
tree | a1fee830c286b0911aae9f4c141572a92261080d /tests/lib/AppFramework/Http | |
parent | 173f8abc7ed48d2436d8df10ad66bc4907d4bb52 (diff) | |
parent | 761cdf9877be6d286f96e1f3eb4beab052b89baa (diff) | |
download | nextcloud-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.php | 4 |
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']); } } |