diff --git a/packages/framework/src/Framework/Features/Documentation/DocumentationSearchPage.php b/packages/framework/src/Framework/Features/Documentation/DocumentationSearchPage.php index 06530bb84a9..a27408c92fd 100644 --- a/packages/framework/src/Framework/Features/Documentation/DocumentationSearchPage.php +++ b/packages/framework/src/Framework/Features/Documentation/DocumentationSearchPage.php @@ -46,8 +46,7 @@ public static function enabled(): bool return Config::getBool('docs.create_search_page', true) && ! Hyde::routes()->has(self::routeKey()); } - /** @deprecated Can be removed by https://github.com/hydephp/develop/pull/1498 */ - public static function routeKey(): string + protected static function routeKey(): string { return ltrim(DocumentationPage::outputDirectory().'/search'); } diff --git a/packages/framework/tests/Feature/DocumentationSearchPageTest.php b/packages/framework/tests/Feature/DocumentationSearchPageTest.php index 22a9b53ed1c..ec91f318044 100644 --- a/packages/framework/tests/Feature/DocumentationSearchPageTest.php +++ b/packages/framework/tests/Feature/DocumentationSearchPageTest.php @@ -59,15 +59,4 @@ public function testEnabledIsFalseWhenDisabledAndRouteExists() Hyde::routes()->put('docs/search', new InMemoryPage('docs/search')); $this->assertFalse(DocumentationSearchPage::enabled()); } - - public function testStaticRouteKeyHelper() - { - $this->assertSame('docs/search', DocumentationSearchPage::routeKey()); - } - - public function testStaticRouteKeyHelperWithCustomOutputDirectory() - { - DocumentationPage::setOutputDirectory('foo'); - $this->assertSame('foo/search', DocumentationSearchPage::routeKey()); - } }