CRM-18536 Remove require_onces no longer required
authoreileen <emcnaughton@wikimedia.org>
Sat, 7 May 2016 23:36:12 +0000 (09:36 +1000)
committereileen <emcnaughton@wikimedia.org>
Tue, 10 May 2016 23:49:21 +0000 (11:49 +1200)
Tim hacked class loader for this

32 files changed:
tests/phpunit/AllTests.php
tests/phpunit/CRM/Activity/AllTests.php
tests/phpunit/CRM/AllTests.php
tests/phpunit/CRM/Case/AllTests.php
tests/phpunit/CRM/Case/BAO/CaseTypeForkTest.php
tests/phpunit/CRM/Contact/AllTests.php
tests/phpunit/CRM/Contribute/AllTests.php
tests/phpunit/CRM/Contribute/Form/ContributionTest.php
tests/phpunit/CRM/Core/AllTests.php
tests/phpunit/CRM/Core/BAO/ActionScheduleTest.php
tests/phpunit/CRM/Core/Payment/BaseIPNTest.php
tests/phpunit/CRM/Event/AllTests.php
tests/phpunit/CRM/Extension/AllTests.php
tests/phpunit/CRM/Extension/Container/AllTests.php
tests/phpunit/CRM/Extension/Manager/AllTests.php
tests/phpunit/CRM/Member/AllTests.php
tests/phpunit/CRM/Member/Form/AllTests.php
tests/phpunit/CRM/Pledge/AllTests.php
tests/phpunit/CRM/Queue/AllTests.php
tests/phpunit/CRM/Queue/Queue/AllTests.php
tests/phpunit/CRM/Queue/QueueTest.php
tests/phpunit/CRM/Queue/RunnerTest.php
tests/phpunit/CRM/Report/Form/Contribute/DetailTest.php
tests/phpunit/CRM/Utils/Cache/AllTests.php
tests/phpunit/CRM/Utils/SignerTest.php
tests/phpunit/Civi/ActionSchedule/AbstractMappingTest.php
tests/phpunit/Civi/AllTests.php
tests/phpunit/Civi/CCase/SequenceListenerTest.php
tests/phpunit/api/v3/AllTests.php
tests/phpunit/api/v3/CaseTest.php
tests/phpunit/api/v3/CaseTypeTest.php
tests/phpunit/api/v3/FinancialTypeACLTest.php

index 88b46301dcf8615451aeac7f5eec8d3f75f11014..bbd44360f7d6b5850c39af708c93f30949f6f611 100644 (file)
  *   <http://www.gnu.org/licenses/>.
  */
 
-/**
- *  Include parent class definition
- */
-require_once 'CiviTest/CiviTestSuite.php';
-
 /**
  *  Class containing all test suites
  *
index 0da000a3a14af67e1b66bdb40cbcf786b1a23aea..3dee67f1395d9efb433ded97ace09351dc1fe258 100644 (file)
  *   <http://www.gnu.org/licenses/>.
  */
 
-/**
- *  Include parent class definition
- */
-require_once 'CiviTest/CiviTestSuite.php';
-
 /**
  *  Class containing all test suites
  *
index dcaa500eb519264a00fa3434243e23dc8921441c..f1c23ce168d3ef11e8008cc532a0f38aa579e590 100644 (file)
  *   <http://www.gnu.org/licenses/>.
  */
 
-/**
- *  Include parent class definition
- */
-require_once 'CiviTest/CiviTestSuite.php';
-
 /**
  *  Class containing all CRM test suites
  *
index 5cb45d3af1dde176bf25a6294ff78cb41b63cad5..012c6781c6a0edb559aaded22ce3bb5a833207a2 100644 (file)
@@ -1,10 +1,5 @@
 <?php
 
-/**
- *  Include parent class definition
- */
-require_once 'CiviTest/CiviTestSuite.php';
-
 /**
  *  Class containing all test suites
  *
index 34b6ea4cffd2edd1560b922a2c2b545577912aee..f91da9823df1e295c2c8f88f78808293d7799a15 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 
-require_once 'CiviTest/CiviCaseTestCase.php';
-
 /**
  * Case Types support an optional forking mechanism wherein the local admin
  * creates a custom DB-based definition that deviates from the file-based definition.
index bbd7e0547583ab7243625791610d3afeeeded0db..2a4f0c24c4c46897a58ecbeb38df1199bb9eaa3d 100644 (file)
  *   <http://www.gnu.org/licenses/>.
  */
 
-/**
- *  Include parent class definition
- */
-require_once 'CiviTest/CiviTestSuite.php';
-
 /**
  *  Class containing all test suites
  *
index 5eb8f79759326bb24f318fac4f54e4ad53455f18..9b0fb084717cc9112166ffbc9b88324849b9f81c 100644 (file)
  *   <http://www.gnu.org/licenses/>.
  */
 
-/**
- *  Include parent class definition
- */
-require_once 'CiviTest/CiviTestSuite.php';
-
 /**
  *  Class containing all test suites
  *
index c4bdeb1b45ddae7f3cd765950635415f20fbc4d5..7144656ca6f2601fc3800c3a755518a2e2e70313 100644 (file)
@@ -452,7 +452,6 @@ class CRM_Contribute_Form_ContributionTest extends CiviUnitTestCase {
    */
   public function testSubmitEmailReceipt() {
     $form = new CRM_Contribute_Form_Contribution();
-    require_once 'CiviTest/CiviMailUtils.php';
     $mut = new CiviMailUtils($this, TRUE);
     $form->testSubmit(array(
       'total_amount' => 50,
index 2f8cc3d3a113df35e7891d8263363ef45463d29b..d37a41ca333b7915def8355808b019de3de10054 100644 (file)
  *   <http://www.gnu.org/licenses/>.
  */
 
-/**
- *  Include parent class definition
- */
-require_once 'CiviTest/CiviTestSuite.php';
-
 /**
  *  Class containing all test suites
  *
index b4301f388ed1bb3f72eddc4dabd2fe2ca2b8c098..a0f2c14c57513c71053431f99dfb4ef28b2bf2b0 100644 (file)
@@ -39,7 +39,6 @@ class CRM_Core_BAO_ActionScheduleTest extends CiviUnitTestCase {
   public function setUp() {
     parent::setUp();
 
-    require_once 'CiviTest/CiviMailUtils.php';
     $this->mut = new CiviMailUtils($this, TRUE);
 
     $this->fixtures['rolling_membership'] = array(
index ef6adbe48e1017e89a37a70ff838e5c25ca979f7..75938d4d7ac730b00250ec9ef227a26ecffea7b9 100644 (file)
@@ -269,7 +269,6 @@ class CRM_Core_Payment_BaseIPNTest extends CiviUnitTestCase {
   public function testsendMailParticipantObjectsCheckLog() {
     $this->_setUpParticipantObjects();
     $values = array();
-    require_once 'CiviTest/CiviMailUtils.php';
     $mut = new CiviMailUtils($this, TRUE);
     $this->IPN->loadObjects($this->input, $this->ids, $this->objects, FALSE, $this->_processorId);
     $this->IPN->sendMail($this->input, $this->ids, $this->objects, $values, FALSE, FALSE);
@@ -296,7 +295,6 @@ class CRM_Core_Payment_BaseIPNTest extends CiviUnitTestCase {
       'civicrm_mailing_spool',
     );
     $this->quickCleanup($tablesToTruncate, FALSE);
-    require_once 'CiviTest/CiviMailUtils.php';
     $mut = new CiviMailUtils($this, TRUE);
     $this->IPN->loadObjects($this->input, $this->ids, $this->objects, FALSE, $this->_processorId);
     $this->IPN->sendMail($this->input, $this->ids, $this->objects, $values, FALSE, FALSE);
index 47ebbec3f535c2b1c133887859fe9a8de9bb54d5..040ade5c46954519ad22d6771005c4be196aa35d 100644 (file)
  *   <http://www.gnu.org/licenses/>.
  */
 
-/**
- *  Include parent class definition
- */
-require_once 'CiviTest/CiviTestSuite.php';
-
 /**
  *  Class containing all test suites
  *
index fb20804b281a2e785dbac1758df5e67cd147f7ff..03061909c3f19e83a4bb75c24ccb486a90cefca9 100644 (file)
  *   <http://www.gnu.org/licenses/>.
  */
 
-/**
- *  Include parent class definition
- */
-require_once 'CiviTest/CiviTestSuite.php';
-
 /**
  *  Class containing all test suites
  *
index fe56a23aba4598887e5db89b92a247e9a4a11dfd..fc4225c3ddff999219c7e722afb25798784c06e0 100644 (file)
  *   <http://www.gnu.org/licenses/>.
  */
 
-/**
- *  Include parent class definition
- */
-require_once 'CiviTest/CiviTestSuite.php';
-
 /**
  *  Class containing all test suites
  *
index 671551504a6027913eb890fc092613faf9eb3877..8276d063b8f342ae65d76200803c1fb76ac8d665 100644 (file)
  *   <http://www.gnu.org/licenses/>.
  */
 
-/**
- *  Include parent class definition
- */
-require_once 'CiviTest/CiviTestSuite.php';
-
 /**
  *  Class containing all test suites
  *
index 6c4bc41d3f4eb38b325e88501a917064f1ff8875..2815763f7ec26d5dd3b1efb437afe4e587d6b9a7 100644 (file)
  *   <http://www.gnu.org/licenses/>.
  */
 
-/**
- *  Include parent class definition
- */
-require_once 'CiviTest/CiviTestSuite.php';
-
 /**
  *  Class containing all test suites
  *
index 097538a36e22eb53bc8fe17a077de345d8455f8c..ac1139e6754e96bd7de55e043dbb63eb0b5d4e6e 100644 (file)
  *   <http://www.gnu.org/licenses/>.
  */
 
-/**
- *  Include parent class definition
- */
-require_once 'CiviTest/CiviTestSuite.php';
-
 /**
  *  Class containing all test suites
  *
index ca8c3aead1a04d6333bdd6a5f6d4fe99ec0d3df4..19fe2c6f1baf6841659a05f5aa0ed0c60f05cbc5 100644 (file)
  *   <http://www.gnu.org/licenses/>.
  */
 
-/**
- *  Include parent class definition
- */
-require_once 'CiviTest/CiviTestSuite.php';
-
 /**
  *  Class containing all test suites
  *
index 0c1f6bf0c68139ae716af780fdcbec902275af96..9e1cb11e73c4df5cc5d02044b0c0c5d8d7dccf9a 100644 (file)
  *   <http://www.gnu.org/licenses/>.
  */
 
-/**
- *  Include parent class definition
- */
-require_once 'CiviTest/CiviTestSuite.php';
-
 /**
  *  Class containing all test suites
  *
index 92011114fd151ec96c32ed1bb92e7511a5a6041d..2e38e07ba6ec3bfbee9c76ba21894ddf97a637ab 100644 (file)
  *   <http://www.gnu.org/licenses/>.
  */
 
-/**
- *  Include parent class definition
- */
-require_once 'CiviTest/CiviTestSuite.php';
-
 /**
  *  Class containing all test suites
  *
index 07a0c550d3f0b5a563d6e31e3331e68f0167b2c4..911c2aead47b0ad05e792b93a3d2f6d60d5ab14d 100644 (file)
@@ -190,7 +190,6 @@ class CRM_Queue_QueueTest extends CiviUnitTestCase {
     $this->queue = $this->queueService->create($queueSpec);
     $this->assertTrue($this->queue instanceof CRM_Queue_Queue);
 
-    require_once 'CRM/Utils/Time.php';
     CRM_Utils_Time::setTime('2012-04-01 1:00:00');
     $this->queue->createItem(array(
       'test-key' => 'a',
index e6882ddd7432e30e455af64e7ed3124c2ffa9f07..f93ba7046904ebfecc12ff018d14096ba24b2f8e 100644 (file)
@@ -33,7 +33,6 @@ class CRM_Queue_RunnerTest extends CiviUnitTestCase {
 
   public function setUp() {
     parent::setUp();
-    require_once 'CRM/Queue/Service.php';
     $this->queueService = CRM_Queue_Service::singleton(TRUE);
     $this->queue = $this->queueService->create(array(
       'type' => 'Sql',
index 14636816293d14acc828bf7ddc2bc8dd7b99fd4d..4574e4067aebf47d88b9da00efeb3a8c80fcb847 100644 (file)
@@ -25,8 +25,6 @@
  +--------------------------------------------------------------------+
  */
 
-require_once 'CiviTest/CiviReportTestCase.php';
-
 /**
  *  Test report outcome
  *
index bb523abcf50682be8acf350b86051ef45a554226..94c4c859af4c65e63df1cea6e6c1e53678c2597e 100644 (file)
  *   <http://www.gnu.org/licenses/>.
  */
 
-/**
- *  Include parent class definition.
- */
-require_once 'CiviTest/CiviTestSuite.php';
-
 /**
  *  Class containing all test suites.
  *
index a2bdc55d84512a2f2a5eb78c5f785944726b3d1f..7f78f6240b4c193a2f9ccb10618e9ea3f190ddb2 100644 (file)
@@ -142,7 +142,6 @@ class CRM_Utils_SignerTest extends CiviUnitTestCase {
     );
 
     foreach ($cases as $caseId => $case) {
-      require_once 'CRM/Utils/Signer.php';
       $signer = new CRM_Utils_Signer('secret', array('a', 'b', 'c'));
       $signature = $signer->sign($case['signParams']);
       $this->assertTrue(!empty($signature) && is_string($signature)); // arbitrary
index 55e0e9fc557ed8fdc425b06e3c44e6f7ed9ab5e3..9d49fd77be4977250c9089277484af2e8699683e 100644 (file)
@@ -141,7 +141,6 @@ abstract class AbstractMappingTest extends \CiviUnitTestCase {
     parent::setUp();
     $this->useTransaction();
 
-    require_once 'CiviTest/CiviMailUtils.php';
     $this->mut = new \CiviMailUtils($this, TRUE);
 
     $this->cronSchedule = array(
index 23280526b7ad588af0ff21f6850aa02a85e27739..220dae744730580162b720896475b4f513cb2a02 100644 (file)
  *   <http://www.gnu.org/licenses/>.
  */
 
-/**
- *  Include parent class definition
- */
-require_once 'CiviTest/CiviTestSuite.php';
-
 /**
  *  Class containing all CRM test suites
  *
index 0c0a2708d2085b18898afba0419c549fc3625a11..48f83ec05f9972aa36d2a8ae910f4742aabcee4f 100644 (file)
@@ -1,8 +1,6 @@
 <?php
 namespace Civi\CCase;
 
-require_once 'CiviTest/CiviCaseTestCase.php';
-
 /**
  * Class SequenceListenerTest
  *
index a0ad53b7875931d3d6cfcbaff882c20e9b9b2b8f..b0c83a557bd9e1aee9463702a6ab86be8289681a 100644 (file)
  *   <http://www.gnu.org/licenses/>.
  */
 
-/**
- *  Include parent class definition
- */
-require_once 'CiviTest/CiviTestSuite.php';
-
 /**
  *  Class containing all API v3 test suites
  *
index cf9bdd0d75592ee817ebc4c8a8f56b3e002f6913..8357d62c5c2b9f53b66e4315d8ff131ac90bab32 100644 (file)
@@ -32,7 +32,6 @@
 /**
  * Include class definitions
  */
-require_once 'CiviTest/CiviCaseTestCase.php';
 
 /**
  *  Test APIv3 civicrm_case_* functions
index 1ea03fa03a2af90f52b3fb275e2a697675703ab9..0e63aacce0ca2f83e551677f43475f4e3b880c6c 100644 (file)
@@ -25,8 +25,6 @@
  +--------------------------------------------------------------------+
  */
 
-require_once 'CiviTest/CiviCaseTestCase.php';
-
 /**
  * Class api_v3_CaseTypeTest
  * @group headless
index d17b5dd499071c9e257a87662dbee2ac203b5904..939d5c520930ef6a9d08e7c9586f06e6053c6deb 100644 (file)
  +--------------------------------------------------------------------+
  */
 
-require_once 'CiviTest/CiviUnitTestCase.php';
-require_once 'CiviTest/CiviMailUtils.php';
-
-
 /**
  *  Test APIv3 civicrm_contribute_* functions
  *