From 8a876e21ae80899210b4d7c83f7406ee7e575d92 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 18 Feb 2021 14:09:43 -0800 Subject: [PATCH] mockPublicForm.test.php - Relax assertion Note that the actual type reported varies slightly by CMS/configuration. assertContentType() should factor-out those differences. We just need loose claim here. --- ext/afform/mock/ang/mockPublicForm.test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/afform/mock/ang/mockPublicForm.test.php b/ext/afform/mock/ang/mockPublicForm.test.php index 6562912103..d4f7bf4f0c 100644 --- a/ext/afform/mock/ang/mockPublicForm.test.php +++ b/ext/afform/mock/ang/mockPublicForm.test.php @@ -10,7 +10,7 @@ class MockPublicFormTest extends \Civi\AfformMock\FormTestCase { public function testGetPage() { $r = $this->createGuzzle()->get('civicrm/mock-public-form'); - $this->assertContentType('text/html; charset=utf-8', $r); + $this->assertContentType('text/html', $r); $this->assertStatusCode(200, $r); $body = (string) $r->getBody(); $this->assertContains('mockPublicForm', $body); -- 2.25.1