mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00: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';
|
$newGroup->Title = 'Title';
|
||||||
$result = $newGroup->validate();
|
$result = $newGroup->validate();
|
||||||
$this->assertTrue($result->isValid());
|
$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()
|
public function testGroupTitleDuplication()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user