Remove obsolete code
authoreileen <emcnaughton@wikmedia.org>
Mon, 20 May 2019 04:46:22 +0000 (16:46 +1200)
committereileen <emcnaughton@wikmedia.org>
Mon, 20 May 2019 23:11:07 +0000 (11:11 +1200)
tests/phpunit/CiviTest/CiviUnitTestCase.php
tests/phpunit/api/v3/ContactTest.php

index 4afdb9b3952d45c1304fbaa543ab0884ea1fa429..c22afcc64232a2caf74d07e199d1aa63c3ec1a4c 100644 (file)
@@ -367,14 +367,6 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase {
 
     $this->getConnection()->getConnection()->query("SET FOREIGN_KEY_CHECKS = 0;");
 
-    $xmlFiles = glob($fixturesDir . '/*.xml');
-    foreach ($xmlFiles as $xmlFixture) {
-      $op = new PHPUnit_Extensions_Database_Operation_Insert();
-      $dataset = $this->createXMLDataSet($xmlFixture);
-      $this->_tablesToTruncate = array_merge($this->_tablesToTruncate, $dataset->getTableNames());
-      $op->execute($this->_dbconn, $dataset);
-    }
-
     $yamlFiles = glob($fixturesDir . '/*.yaml');
     foreach ($yamlFiles as $yamlFixture) {
       $op = new PHPUnit_Extensions_Database_Operation_Insert();
index bd178c7300ad7b085076341a6fbe9ebf78277a58..d0d5ed74666761b4114fad5fd180376e3aff0730 100644 (file)
@@ -2611,19 +2611,6 @@ class api_v3_ContactTest extends CiviUnitTestCase {
     $this->callAPISuccess('contact', 'update', $params);
   }
 
-  /**
-   * Set up helper to create a contact.
-   */
-  public function createContactFromXML() {
-    // Insert a row in civicrm_contact creating contact 17.
-    $op = new PHPUnit_Extensions_Database_Operation_Insert();
-    $op->execute($this->_dbconn,
-      $this->createXMLDataSet(
-        dirname(__FILE__) . '/dataset/contact_17.xml'
-      )
-    );
-  }
-
   /**
    * Test contact proximity api.
    */