Fix ExportModelTest on PHP 8.1

This commit is contained in:
Luke Towers 2022-02-18 14:01:23 -06:00
parent 216583fbe4
commit 22cbfe94ac

View File

@ -63,7 +63,8 @@ class ExportModelTest extends TestCase
$this->assertTrue($response->headers->has('Content-Type'), "Response is missing the Content-Type header!");
$this->assertTrue(
$response->headers->contains('Content-Type', 'application/csv')
|| $response->headers->contains('Content-Type', 'text/plain'),
|| $response->headers->contains('Content-Type', 'text/plain')
|| $response->headers->contains('Content-Type', 'text/csv'),
"Content-Type is not as expected, provided: " . $response->headers->get('Content-Type')
);