4 * @covers ChangesListBooleanFilterGroup
6 class ChangesListBooleanFilterGroupTest
extends MediaWikiTestCase
{
7 public function testIsFullCoverage() {
8 $hideGroupDefault = TestingAccessWrapper
::newFromObject(
9 new ChangesListBooleanFilterGroup( [
10 'name' => 'groupName',
18 $hideGroupDefault->isFullCoverage
22 public function testGetJsData() {
24 'name' => 'some-group',
25 'title' => 'some-group-title',
30 'label' => 'foo-label',
31 'description' => 'foo-description',
33 'showHide' => 'showhidefoo',
38 'label' => 'bar-label',
39 'description' => 'bar-description',
46 $group = new ChangesListBooleanFilterGroup( $definition );
48 $this->assertArrayEquals(
50 'name' => 'some-group',
51 'title' => 'some-group-title',
52 'type' => ChangesListBooleanFilterGroup
::TYPE
,
57 'label' => 'bar-label',
58 'description' => 'bar-description',
67 'label' => 'foo-label',
68 'description' => 'foo-description',
77 'fullCoverage' => true,
88 /** ordered= */ false,