Merge "Fix order of expected/actual in SkinVectorTest"

This commit is contained in:
jenkins-bot 2020-09-11 16:49:08 +00:00 committed by Gerrit Code Review
commit e7d3728666

View file

@ -77,28 +77,39 @@ 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', [
'label-id' => 'p-views-label', 'id' => 'p-views',
'label' => $context->msg( 'views' )->text(), 'label-id' => 'p-views-label',
'list-classes' => 'vector-menu-content-list', 'label' => $context->msg( 'views' )->text(),
'html-items' => '', 'list-classes' => 'vector-menu-content-list',
'is-dropdown' => false, 'html-items' => '',
'html-tooltip' => '', 'is-dropdown' => false,
'html-after-portal' => '', 'html-tooltip' => '',
'class' => 'vector-menu-empty emptyPortlet vector-menu vector-menu-tabs vectorTabs', 'html-after-portal' => '',
] ); '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']
);
} }
} }