mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 11:59:56 +00:00
VE-1994: Fix unit tests
This commit is contained in:
parent
3d05ec1758
commit
2faa1bd633
|
@ -34,7 +34,8 @@ class NodeGroupTest extends WikiaBaseTest {
|
|||
[ 'type' => 'data', 'isEmpty' => true, 'data' => [ 'label' => 'l2', 'value' => null ],
|
||||
'source' => [ 'elem3' ] ]
|
||||
],
|
||||
'layout' => 'default'
|
||||
'layout' => 'default',
|
||||
'collapse' => null
|
||||
] ],
|
||||
[ '<group layout="horizontal"><data source="elem1"><label>l1</label><default>def1</default></data><data source="elem2">
|
||||
<label>l2</label><default>def2</default></data><data source="elem3"><label>l2</label></data></group>',
|
||||
|
@ -48,7 +49,8 @@ class NodeGroupTest extends WikiaBaseTest {
|
|||
[ 'type' => 'data', 'isEmpty' => true, 'data' => [ 'label' => 'l2', 'value' => null ],
|
||||
'source' => [ 'elem3' ] ],
|
||||
],
|
||||
'layout' => 'horizontal'
|
||||
'layout' => 'horizontal',
|
||||
'collapse' => null
|
||||
] ],
|
||||
[ '<group layout="loool"><data source="elem1"><label>l1</label><default>def1</default></data><data source="elem2">
|
||||
<label>l2</label><default>def2</default></data><data source="elem3"><label>l2</label></data></group>',
|
||||
|
@ -62,7 +64,8 @@ class NodeGroupTest extends WikiaBaseTest {
|
|||
[ 'type' => 'data', 'isEmpty' => true, 'data' => [ 'label' => 'l2', 'value' => null ],
|
||||
'source' => [ 'elem3' ] ],
|
||||
],
|
||||
'layout' => 'default'
|
||||
'layout' => 'default',
|
||||
'collapse' => null
|
||||
] ],
|
||||
[ '<group show="incomplete"><header>h</header><data source="1"/><data source="2"/></group>',
|
||||
[ '1' => 'one', '2' => 'two' ],
|
||||
|
@ -73,7 +76,8 @@ class NodeGroupTest extends WikiaBaseTest {
|
|||
[ 'type' => 'data', 'data' => [ 'value' => 'two', 'label' => '' ], 'isEmpty' => false,
|
||||
'source' => [ '2' ] ],
|
||||
],
|
||||
'layout' => 'default'
|
||||
'layout' => 'default',
|
||||
'collapse' => null
|
||||
] ],
|
||||
[ '<group show="incomplete"><header>h</header><data source="1"/><data source="2"/></group>',
|
||||
[ '1' => 'one' ],
|
||||
|
@ -84,7 +88,8 @@ class NodeGroupTest extends WikiaBaseTest {
|
|||
[ 'type' => 'data', 'data' => [ 'value' => null, 'label' => '' ], 'isEmpty' => true,
|
||||
'source' => [ '2' ] ]
|
||||
],
|
||||
'layout' => 'default'
|
||||
'layout' => 'default',
|
||||
'collapse' => null
|
||||
] ],
|
||||
[ '<group show="incomplete"><header>h</header><data source="1"/><data source="2"/></group>', [ ],
|
||||
[ 'value' => [
|
||||
|
@ -94,7 +99,8 @@ class NodeGroupTest extends WikiaBaseTest {
|
|||
[ 'type' => 'data', 'data' => [ 'value' => null, 'label' => '' ], 'isEmpty' => true,
|
||||
'source' => [ '2' ] ],
|
||||
],
|
||||
'layout' => 'default'
|
||||
'layout' => 'default',
|
||||
'collapse' => null
|
||||
] ]
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue