mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
commit
d2df0650db
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user