mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-03 19:57:19 +00:00
Merge "Fix order of expected/actual in SkinVectorTest"
This commit is contained in:
commit
e7d3728666
|
@ -77,7 +77,8 @@ class SkinVectorTest extends MediaWikiIntegrationTestCase {
|
||||||
$views = $props['data-page-actions'];
|
$views = $props['data-page-actions'];
|
||||||
$namespaces = $props['data-namespace-tabs'];
|
$namespaces = $props['data-namespace-tabs'];
|
||||||
|
|
||||||
$this->assertSame( $views, [
|
$this->assertSame(
|
||||||
|
[
|
||||||
'id' => 'p-views',
|
'id' => 'p-views',
|
||||||
'label-id' => 'p-views-label',
|
'label-id' => 'p-views-label',
|
||||||
'label' => $context->msg( 'views' )->text(),
|
'label' => $context->msg( 'views' )->text(),
|
||||||
|
@ -87,18 +88,28 @@ class SkinVectorTest extends MediaWikiIntegrationTestCase {
|
||||||
'html-tooltip' => '',
|
'html-tooltip' => '',
|
||||||
'html-after-portal' => '',
|
'html-after-portal' => '',
|
||||||
'class' => 'vector-menu-empty emptyPortlet vector-menu vector-menu-tabs vectorTabs',
|
'class' => 'vector-menu-empty emptyPortlet vector-menu vector-menu-tabs vectorTabs',
|
||||||
] );
|
],
|
||||||
|
$views
|
||||||
|
);
|
||||||
|
|
||||||
$variants = $props['data-variants'];
|
$variants = $props['data-variants'];
|
||||||
$actions = $props['data-page-actions-more'];
|
$actions = $props['data-page-actions-more'];
|
||||||
$this->assertSame( $namespaces['class'],
|
$this->assertSame(
|
||||||
'vector-menu-empty emptyPortlet vector-menu vector-menu-tabs vectorTabs' );
|
'vector-menu-empty emptyPortlet vector-menu vector-menu-tabs vectorTabs',
|
||||||
$this->assertSame( $variants['class'],
|
$namespaces['class']
|
||||||
'vector-menu-empty emptyPortlet vector-menu vector-menu-dropdown vectorMenu' );
|
);
|
||||||
$this->assertSame( $actions['class'],
|
$this->assertSame(
|
||||||
'vector-menu-empty emptyPortlet vector-menu vector-menu-dropdown vectorMenu' );
|
'vector-menu-empty emptyPortlet vector-menu vector-menu-dropdown vectorMenu',
|
||||||
$this->assertSame( $props['data-personal-menu']['class'],
|
$variants['class']
|
||||||
'vector-menu-empty emptyPortlet vector-menu' );
|
);
|
||||||
|
$this->assertSame(
|
||||||
|
'vector-menu-empty emptyPortlet vector-menu vector-menu-dropdown vectorMenu',
|
||||||
|
$actions['class']
|
||||||
|
);
|
||||||
|
$this->assertSame(
|
||||||
|
'vector-menu-empty emptyPortlet vector-menu',
|
||||||
|
$props['data-personal-menu']['class']
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue