From 6202c5bbcd87963e222a47f802f9fd148f452240 Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 28 Mar 2019 09:03:57 +1300 Subject: [PATCH] Add Unit test for export with incomplete data --- tests/phpunit/CRM/Export/BAO/ExportTest.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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. * -- 2.25.1