mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-18 11:35:54 +00:00
b94ce6adbd
removed commented out code changed namespace Tests\MediaWiki\Minerva to namespace MediaWiki\Minerva Bug: T303104 Change-Id: Ie151dcbfc65b49cb91fea81f8526287ca18d7a7d
28 lines
666 B
PHP
28 lines
666 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Minerva\Menu\Entries;
|
|
|
|
use MediaWikiIntegrationTestCase;
|
|
|
|
/**
|
|
* @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() );
|
|
}
|
|
}
|