diff --git a/tests/phpunit/EntryPoints/SpecialWikibaseFacetedSearchConfigTest.php b/tests/phpunit/EntryPoints/SpecialWikibaseFacetedSearchConfigTest.php new file mode 100644 index 0000000..9a2075c --- /dev/null +++ b/tests/phpunit/EntryPoints/SpecialWikibaseFacetedSearchConfigTest.php @@ -0,0 +1,32 @@ +getServiceContainer()->getSpecialPageFactory()->getPage( 'WikibaseFacetedSearchConfig' ); + } + + public function testRedirect(): void { + $specialRules = $this->newSpecialPage(); + + $specialRules->execute( null ); + + $this->assertEquals( + Title::newFromText( WikibaseFacetedSearchExtension::CONFIG_PAGE_TITLE, NS_MEDIAWIKI )->getFullURL(), + $specialRules->getOutput()->getRedirect() + ); + } + +}