From 565af64fc81211897625be2b000a28c910174edb Mon Sep 17 00:00:00 2001 From: Bhavika-keswani Date: Tue, 2 Jul 2019 12:41:45 +0530 Subject: Custom modules added --- .../tests/src/Functional/LoadTest.php | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 modules/bhavika/photo_gallery/tests/src/Functional/LoadTest.php (limited to 'modules/bhavika/photo_gallery/tests/src') diff --git a/modules/bhavika/photo_gallery/tests/src/Functional/LoadTest.php b/modules/bhavika/photo_gallery/tests/src/Functional/LoadTest.php new file mode 100644 index 0000000..dfe0211 --- /dev/null +++ b/modules/bhavika/photo_gallery/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