From e8194123a69cf9a7fd3b052651a3e6b674349d8f Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Mon, 13 Jun 2022 16:32:10 +1200 Subject: [PATCH] MNT Add test for programatically adding blank Group title. --- tests/php/Security/GroupTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/php/Security/GroupTest.php b/tests/php/Security/GroupTest.php index ea8d32881..ae4f8f34e 100644 --- a/tests/php/Security/GroupTest.php +++ b/tests/php/Security/GroupTest.php @@ -305,6 +305,11 @@ class GroupTest extends FunctionalTest $newGroup->Title = 'Title'; $result = $newGroup->validate(); $this->assertTrue($result->isValid()); + + // Title can be empty to avoid breaking backwards-compatibility. + $newGroup->Title = ''; + $result = $newGroup->validate(); + $this->assertTrue($result->isValid()); } public function testGroupTitleDuplication()