mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 11:13:34 +00:00
28 lines
630 B
PHP
28 lines
630 B
PHP
|
<?php
|
||
|
|
||
|
namespace Tests\MediaWiki\Minerva\Menu;
|
||
|
|
||
|
use MediaWiki\Minerva\Menu\MenuEntry;
|
||
|
|
||
|
/**
|
||
|
* @group MinervaNeue
|
||
|
* @coversDefaultClass \MediaWiki\Minerva\Menu\MenuEntry
|
||
|
*/
|
||
|
class MenuEntryTest extends \MediaWikiTestCase {
|
||
|
|
||
|
/**
|
||
|
* @covers ::__construct
|
||
|
* @covers ::getName()
|
||
|
* @covers ::isJSOnly()
|
||
|
* @covers ::getComponents()
|
||
|
*/
|
||
|
public function testMenuEntryConstruction() {
|
||
|
$name = 'test';
|
||
|
$isJSOnly = true;
|
||
|
$entry = new MenuEntry( $name, $isJSOnly );
|
||
|
$this->assertSame( $name, $entry->getName() );
|
||
|
$this->assertSame( $isJSOnly, $entry->isJSOnly() );
|
||
|
$this->assertSame( [], $entry->getComponents() );
|
||
|
}
|
||
|
}
|