From: eileen Date: Wed, 27 Mar 2019 20:03:57 +0000 (+1300) Subject: Add Unit test for export with incomplete data X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6202c5bbcd87963e222a47f802f9fd148f452240;p=civicrm-core.git Add Unit test for export with incomplete data --- diff --git a/tests/phpunit/CRM/Export/BAO/ExportTest.php b/tests/phpunit/CRM/Export/BAO/ExportTest.php index c6ac775b34..f1341e1f18 100644 --- a/tests/phpunit/CRM/Export/BAO/ExportTest.php +++ b/tests/phpunit/CRM/Export/BAO/ExportTest.php @@ -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. *