diff --git a/packages/framework/tests/Feature/Services/HydeSmartDocsTest.php b/packages/framework/tests/Feature/Services/HydeSmartDocsTest.php index f9c43055d77..1404841fbdb 100644 --- a/packages/framework/tests/Feature/Services/HydeSmartDocsTest.php +++ b/packages/framework/tests/Feature/Services/HydeSmartDocsTest.php @@ -202,11 +202,12 @@ public function test_the_documentation_article_view_with_existing_variable() { $rendered = view('hyde::components.docs.documentation-article', [ 'page' => $page = $this->makePage(), - 'article' => new class($page) extends SemanticDocumentationArticle { - public function __construct(DocumentationPage $page) + 'article' => new class($page) extends SemanticDocumentationArticle { - parent::__construct($page); - } + public function __construct(DocumentationPage $page) + { + parent::__construct($page); + } public function renderHeader(): HtmlString { @@ -217,7 +218,6 @@ public function renderHeader(): HtmlString $this->assertStringContainsString('

Custom Header

', $rendered); $this->assertStringContainsString('

Hello world.

', $rendered); - } protected function makeArticle(string $sourceFileContents = "# Foo\n\nHello world."): SemanticDocumentationArticle