From e2b506f7b23d691260d942f1ed0a09f16cff4b25 Mon Sep 17 00:00:00 2001 From: eileen Date: Sun, 23 Jun 2019 14:50:31 +1200 Subject: [PATCH] dev/core#1048 test replicating bug --- tests/phpunit/CRM/Contact/SelectorTest.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/phpunit/CRM/Contact/SelectorTest.php b/tests/phpunit/CRM/Contact/SelectorTest.php index 4ea885657d..f19e125342 100644 --- a/tests/phpunit/CRM/Contact/SelectorTest.php +++ b/tests/phpunit/CRM/Contact/SelectorTest.php @@ -49,6 +49,7 @@ class CRM_Contact_SelectorTest extends CiviUnitTestCase { * clause will need changing. * * @dataProvider querySets + * @throws \Exception */ public function testSelectorQuery($dataSet) { $params = CRM_Contact_BAO_Query::convertFormValues($dataSet['form_values'], 0, FALSE, NULL, array()); @@ -176,6 +177,20 @@ class CRM_Contact_SelectorTest extends CiviUnitTestCase { */ public function querySets() { return array( + array( + array( + 'description' => 'Empty group test', + 'class' => 'CRM_Contact_Selector', + 'settings' => [], + 'form_values' => [['contact_type', '=', 'Individual', 1, 0], ['group', 'IS NULL', '', 1, 0]], + 'params' => [], + 'return_properties' => NULL, + 'context' => 'builder', + 'action' => CRM_Core_Action::NONE, + 'includeContactIds' => NULL, + 'searchDescendentGroups' => FALSE, + ), + ), array( array( 'description' => 'Normal default behaviour', -- 2.25.1