From 415cb25dbe956ded98f3d8fd0459add190e66398 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 9 Feb 2016 19:26:11 -0800 Subject: [PATCH] CRM-17860 - CiviTestListener - Fix bootstrap for end-to-end tests. --- Civi/Test/CiviTestListener.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Civi/Test/CiviTestListener.php b/Civi/Test/CiviTestListener.php index 8dff35b3f2..3bd6f0dbc5 100644 --- a/Civi/Test/CiviTestListener.php +++ b/Civi/Test/CiviTestListener.php @@ -86,7 +86,7 @@ class CiviTestListener extends \PHPUnit_Framework_BaseTestListener { */ protected function bootHeadless($test) { if (CIVICRM_UF !== 'UnitTests') { - throw new \RuntimeException('CiviHeadlessTestInterface requires CIVICRM_UF=UnitTests'); + throw new \RuntimeException('HeadlessInterface requires CIVICRM_UF=UnitTests'); } // Hrm, this seems wrong. Shouldn't we be resetting the entire session? @@ -168,11 +168,11 @@ class CiviTestListener extends \PHPUnit_Framework_BaseTestListener { } elseif (!empty($byInterface['HeadlessInterface'])) { putenv('CIVICRM_UF=UnitTests'); - eval($this->cv('php:boot --level=settings', 'phpcode')); + eval($this->cv('php:boot --level=full', 'phpcode')); } elseif (!empty($byInterface['EndToEndInterface'])) { putenv('CIVICRM_UF='); - eval($this->cv('php:boot --level=settings', 'phpcode')); + eval($this->cv('php:boot --level=full', 'phpcode')); } $blurb = "Tip: Run the headless tests and end-to-end tests separately, e.g.\n" -- 2.25.1