Skip to content
Snippets Groups Projects
Unverified Commit 651cc13d authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #18698 from seamuslee001/test_dev_core_2053

[NFC] #2053 Extend nextedGroup test to show that it will retu…
parents 3bfdcfb5 f5be1f3a
Branches
Tags
No related merge requests found
......@@ -142,6 +142,7 @@ class CRM_Contact_BAO_GroupTest extends CiviUnitTestCase {
'parents' => [
$group2->id => 1,
],
'group_type' => ['2' => 1],
];
$group3 = CRM_Contact_BAO_Group::create($params);
......@@ -155,7 +156,10 @@ class CRM_Contact_BAO_GroupTest extends CiviUnitTestCase {
// Check restrict to mailing groups
$nestedGroup = CRM_Core_PseudoConstant::nestedGroup(TRUE, 'Mailing');
$this->assertSame([$group1->id => 'Parent Group A'], $nestedGroup);
$this->assertSame([
$group1->id => 'Parent Group A',
$group3->id => '  Child Group C',
], $nestedGroup);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment