mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-25 14:47:08 +00:00
702ec511dc
MediaWikiTestCase has been renamed to MediaWikiIntegrationTestCase in 1.34. Bug: T293043 Change-Id: I5b83516ccdf0ac025421844c9516e856060aefba
28 lines
685 B
PHP
28 lines
685 B
PHP
<?php
|
|
|
|
namespace Tests\MediaWiki\Minerva\Menu\Entries;
|
|
|
|
use MediaWiki\Minerva\Menu\Entries\MenuEntry;
|
|
|
|
/**
|
|
* @group MinervaNeue
|
|
* @coversDefaultClass \MediaWiki\Minerva\Menu\Entries\MenuEntry
|
|
*/
|
|
class MenuEntryTest extends \MediaWikiIntegrationTestCase {
|
|
|
|
/**
|
|
* @covers ::__construct
|
|
* @covers ::getName()
|
|
* @covers ::getCSSClasses()
|
|
* @covers ::getComponents()
|
|
*/
|
|
public function testMenuEntryConstruction() {
|
|
$name = 'test';
|
|
$isJSOnly = true;
|
|
$entry = new MenuEntry( $name, $isJSOnly );
|
|
$this->assertSame( $name, $entry->getName() );
|
|
$this->assertArrayEquals( [ 'jsonly' ], $entry->getCSSClasses() );
|
|
$this->assertSame( [], $entry->getComponents() );
|
|
}
|
|
}
|