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/Controller/LegalFormsControllerTest.php | 39 ++++++++++++++++++ .../legal_forms1/tests/src/Functional/LoadTest.php | 46 ++++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 modules/bhavika/legal_forms1/tests/Controller/LegalFormsControllerTest.php create mode 100644 modules/bhavika/legal_forms1/tests/src/Functional/LoadTest.php (limited to 'modules/bhavika/legal_forms1/tests') diff --git a/modules/bhavika/legal_forms1/tests/Controller/LegalFormsControllerTest.php b/modules/bhavika/legal_forms1/tests/Controller/LegalFormsControllerTest.php new file mode 100644 index 0000000..37eb9ce --- /dev/null +++ b/modules/bhavika/legal_forms1/tests/Controller/LegalFormsControllerTest.php @@ -0,0 +1,39 @@ + "legal_forms1 LegalFormsController's controller functionality", + 'description' => 'Test Unit for module legal_forms1 and controller LegalFormsController.', + 'group' => 'Other', + ]; + } + + /** + * {@inheritdoc} + */ + public function setUp() { + parent::setUp(); + } + + /** + * Tests legal_forms1 functionality. + */ + public function testLegalFormsController() { + // Check that the basic functions of module legal_forms1. + $this->assertEquals(TRUE, TRUE, 'Test Unit Generated via Drupal Console.'); + } + +} diff --git a/modules/bhavika/legal_forms1/tests/src/Functional/LoadTest.php b/modules/bhavika/legal_forms1/tests/src/Functional/LoadTest.php new file mode 100644 index 0000000..530fa33 --- /dev/null +++ b/modules/bhavika/legal_forms1/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