From 141ce8c97abe36f1f8bb06a38623e93563d6c618 Mon Sep 17 00:00:00 2001 From: Esha Date: Tue, 2 Jul 2019 12:42:54 +0530 Subject: Custom modules --- .../programs/tests/src/Functional/LoadTest.php | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 modules/esha/programs/tests/src/Functional/LoadTest.php (limited to 'modules/esha/programs/tests/src') diff --git a/modules/esha/programs/tests/src/Functional/LoadTest.php b/modules/esha/programs/tests/src/Functional/LoadTest.php new file mode 100644 index 0000000..8d3d7ab --- /dev/null +++ b/modules/esha/programs/tests/src/Functional/LoadTest.php @@ -0,0 +1,46 @@ +user = $this->drupalCreateUser(['administer site configuration']); + $this->drupalLogin($this->user); + } + + /** + * Tests that the home page loads with a 200 response. + */ + public function testLoad() { + $this->drupalGet(Url::fromRoute('')); + $this->assertSession()->statusCodeEquals(200); + } + +} -- cgit