Fix accidental breakage of CiviMailUtils
authorColeman Watts <coleman@civicrm.org>
Mon, 22 Sep 2014 23:22:32 +0000 (19:22 -0400)
committerColeman Watts <coleman@civicrm.org>
Mon, 22 Sep 2014 23:22:32 +0000 (19:22 -0400)
tests/phpunit/CiviTest/CiviMailUtils.php

index dcb166d84275ed6fbbaf5b5d471e380cbab5a48b..4e160927fbe01f6e9a4d4facbfa80651191b2267 100644 (file)
@@ -65,9 +65,10 @@ class CiviMailUtils extends PHPUnit_Framework_TestCase {
    * @param $startImmediately bool Start writing to db now or wait until start() is called
    */
   function __construct(&$unit_test, $startImmediately = TRUE) {
+    $this->_ut = $unit_test;
+
     // Check if running under webtests or not
     if (is_subclass_of($unit_test, 'CiviSeleniumTestCase')) {
-      $this->_ut = $unit_test;
       $this->_webtest = TRUE;
     }