Add Unit test for export with incomplete data
authoreileen <emcnaughton@wikimedia.org>
Wed, 27 Mar 2019 20:03:57 +0000 (09:03 +1300)
committereileen <emcnaughton@wikimedia.org>
Wed, 27 Mar 2019 20:07:25 +0000 (09:07 +1300)
tests/phpunit/CRM/Export/BAO/ExportTest.php

index c6ac775b34f9fcfc005428538df578bfca623764..f1341e1f18418675d47820d1ff85a651695d4715 100644 (file)
@@ -1689,6 +1689,18 @@ class CRM_Export_BAO_ExportTest extends CiviUnitTestCase {
     $this->assertEquals($expectedHeaders, $result[2]);
   }
 
+  /**
+   * Test exported with data entry mis-fire.
+   *
+   * Not fatal error if data incomplete.
+   *
+   * https://lab.civicrm.org/dev/core/issues/819
+   */
+  public function testExportIncompleteSubmission() {
+    $this->setUpContactExportData();
+    $this->doExport([['Individual', '']], $this->contactIDs[1]);
+  }
+
   /**
    * Test exported with fields to output specified.
    *