mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-18 03:31:34 +00:00
4c34cce9f3
The number of generic menu entry specific files is growing which is cluttering the Menu/ directory. Move the entries to a new subfolder. Bug: T214540 Change-Id: I807d6f6034ee1924e3a606f5e6782c3298896825
28 lines
674 B
PHP
28 lines
674 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 \MediaWikiTestCase {
|
|
|
|
/**
|
|
* @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() );
|
|
}
|
|
}
|