mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Add visiblity to SelectionGroup test functions
This commit is contained in:
parent
2512761587
commit
09cc75a656
@ -10,8 +10,7 @@ use SilverStripe\Forms\SelectionGroup;
|
|||||||
|
|
||||||
class SelectionGroupTest extends SapphireTest
|
class SelectionGroupTest extends SapphireTest
|
||||||
{
|
{
|
||||||
|
public function testFieldHolder()
|
||||||
function testFieldHolder()
|
|
||||||
{
|
{
|
||||||
$items = array(
|
$items = array(
|
||||||
new SelectionGroup_Item(
|
new SelectionGroup_Item(
|
||||||
@ -41,7 +40,7 @@ class SelectionGroupTest extends SapphireTest
|
|||||||
$this->assertContains('two view', (string)$listElTwo->div);
|
$this->assertContains('two view', (string)$listElTwo->div);
|
||||||
}
|
}
|
||||||
|
|
||||||
function testSelectedFieldHolder()
|
public function testSelectedFieldHolder()
|
||||||
{
|
{
|
||||||
$items = array(
|
$items = array(
|
||||||
new SelectionGroup_Item(
|
new SelectionGroup_Item(
|
||||||
@ -68,7 +67,7 @@ class SelectionGroupTest extends SapphireTest
|
|||||||
$this->assertEquals('selected', (string)$listElTwo->attributes()->class);
|
$this->assertEquals('selected', (string)$listElTwo->attributes()->class);
|
||||||
}
|
}
|
||||||
|
|
||||||
function testLegacyItemsFieldHolder()
|
public function testLegacyItemsFieldHolder()
|
||||||
{
|
{
|
||||||
$items = array(
|
$items = array(
|
||||||
'one' => new LiteralField('one', 'one view'),
|
'one' => new LiteralField('one', 'one view'),
|
||||||
@ -87,7 +86,7 @@ class SelectionGroupTest extends SapphireTest
|
|||||||
$this->assertEquals(' two', (string)$listElTwo->label[0]);
|
$this->assertEquals(' two', (string)$listElTwo->label[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
function testLegacyItemsFieldHolderWithTitle()
|
public function testLegacyItemsFieldHolderWithTitle()
|
||||||
{
|
{
|
||||||
$items = array(
|
$items = array(
|
||||||
'one//one title' => new LiteralField('one', 'one view'),
|
'one//one title' => new LiteralField('one', 'one view'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user