mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-12-30 15:32:54 +00:00
650d2c296d
There is much more to test, but it's a start. Intentionally build as pure unit tests to make them as fast as possible. Bug: T354215 Bug: T358652 Change-Id: Iae1a8086b8f2b9e5b11e0117bd3f19fdaa087df0
25 lines
518 B
PHP
25 lines
518 B
PHP
<?php
|
|
|
|
namespace Cite\Tests\Unit;
|
|
|
|
use Cite\Cite;
|
|
use Cite\Parsoid\RefGroup;
|
|
use MediaWikiUnitTestCase;
|
|
|
|
/**
|
|
* @covers \Cite\Parsoid\RefGroup
|
|
* @license GPL-2.0-or-later
|
|
*/
|
|
class RefGroupTest extends MediaWikiUnitTestCase {
|
|
|
|
public function testMinimalSetup() {
|
|
$group = new RefGroup();
|
|
$this->assertSame( Cite::DEFAULT_GROUP, $group->name );
|
|
$this->assertSame( [], $group->refs );
|
|
$this->assertSame( [], $group->indexByName );
|
|
}
|
|
|
|
// TODO: Incomplete, at least the renderLine method should be covered
|
|
|
|
}
|