<?php
+use Wikimedia\ScopedCallback;
+
class WikiCategoryPageTest extends MediaWikiLangTestCase {
/**
$pageProps->expects( $this->once() )
->method( 'getProperties' )
->with( $title, 'hiddencat' )
- ->will( $this->returnValue( [ ] ) );
+ ->will( $this->returnValue( [] ) );
$scopedOverride = PageProps::overrideInstance( $pageProps );
$pageProps->expects( $this->once() )
->method( 'getProperties' )
->with( $categoryTitle, 'hiddencat' )
- ->will( $this->returnValue( $isHidden ? [ $categoryTitle->getArticleID() => '' ] : [ ] ) );
+ ->will( $this->returnValue( $isHidden ? [ $categoryTitle->getArticleID() => '' ] : [] ) );
$scopedOverride = PageProps::overrideInstance( $pageProps );