From c78f3d0435729c29336f2d5c7c48902311e5a513 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 8 Aug 2023 12:00:00 +0100 Subject: [PATCH] test: add FrontPageTest --- .../tests/src/Functional/FrontPageTest.php | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 web/modules/custom/example/tests/src/Functional/FrontPageTest.php diff --git a/web/modules/custom/example/tests/src/Functional/FrontPageTest.php b/web/modules/custom/example/tests/src/Functional/FrontPageTest.php new file mode 100644 index 0000000..24ae108 --- /dev/null +++ b/web/modules/custom/example/tests/src/Functional/FrontPageTest.php @@ -0,0 +1,30 @@ +config('system.site') + ->set('page.front', '/node') + ->save(TRUE); + + $this->drupalGet(''); + + $assert = $this->assertSession(); + + $assert->statusCodeEquals(Response::HTTP_OK); + $assert->pageTextContains('No front page content has been created yet.'); + } + +}