Merge pull request #10355 from creative-commoners/pulls/4/group-title-test

MNT Add test for programatically adding blank Group title.
This commit is contained in:
Loz Calver 2022-06-13 09:17:06 +01:00 committed by GitHub
commit d2df0650db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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()