From 40ac4260c3d98177e09a011e80d65ad9068a7acf Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Wed, 10 Jul 2024 17:37:43 +0200 Subject: [PATCH 1/2] Update test sources --- .idea/develop.iml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.idea/develop.iml b/.idea/develop.iml index 030488fff4e..8765adeeacf 100644 --- a/.idea/develop.iml +++ b/.idea/develop.iml @@ -18,6 +18,9 @@ + + + From d14fa74b648afb7fac3711b5b14a746d05758a03 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Wed, 10 Jul 2024 18:30:34 +0200 Subject: [PATCH 2/2] Add accessor for the rendered test view contents --- packages/testing/src/Support/TestView.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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 {