From 103ae50efd27366ed6d81eda9bfe395665fc52c4 Mon Sep 17 00:00:00 2001 From: eileen Date: Sat, 29 Jun 2019 10:07:29 +1200 Subject: [PATCH] Store header to statics in unit tests --- CRM/Utils/System/UnitTests.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CRM/Utils/System/UnitTests.php b/CRM/Utils/System/UnitTests.php index 4882bbdb76..04120edac8 100644 --- a/CRM/Utils/System/UnitTests.php +++ b/CRM/Utils/System/UnitTests.php @@ -45,6 +45,14 @@ class CRM_Utils_System_UnitTests extends CRM_Utils_System_Base { $this->supports_form_extensions = FALSE; } + /** + * @param string $name + * @param string $value + */ + public function setHttpHeader($name, $value) { + Civi::$statics[__CLASS__]['header'][] = ("$name: $value"); + } + /** * @inheritDoc */ -- 2.25.1