mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MNT Add test for programatically adding blank Group title.
This commit is contained in:
parent
1c85d151a6
commit
e8194123a6
@ -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…
Reference in New Issue
Block a user