diff --git a/packages/testing/src/Support/TestView.php b/packages/testing/src/Support/TestView.php index dff6dd38698..691baf2e5b0 100644 --- a/packages/testing/src/Support/TestView.php +++ b/packages/testing/src/Support/TestView.php @@ -179,6 +179,14 @@ public function assertTextIs(string $value): static return $this; } + /** + * Get the rendered view as a string. + */ + public function getRendered(): string + { + return $this->rendered; + } + #[NoReturn] public function dd(bool $writeHtml = true): void {