VE-1994: Fix unit tests

This commit is contained in:
Inez Korczynski 2015-10-26 22:06:10 +00:00
parent 3d05ec1758
commit 2faa1bd633

View file

@ -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
] ]
];
}