summaryrefslogtreecommitdiff
path: root/modules/bhavika/legal_forms1
diff options
context:
space:
mode:
authorNitesh Kumar Sinha2019-07-02 17:31:47 +0530
committerGitHub2019-07-02 17:31:47 +0530
commitc63a20a2e293cb104027480a5770406e3f17c514 (patch)
tree4b429a480a1b52a2e90026f43d0a6e77c32e6899 /modules/bhavika/legal_forms1
parent3ad1b8d590d7d11d83e8c923970690900dc31f70 (diff)
parentdfbf9d3e8acfb503ddf7785b35b0ab85f7c3351a (diff)
downloadacadmix_distribution-c63a20a2e293cb104027480a5770406e3f17c514.tar.gz
acadmix_distribution-c63a20a2e293cb104027480a5770406e3f17c514.tar.bz2
acadmix_distribution-c63a20a2e293cb104027480a5770406e3f17c514.zip
Merge pull request #12 from Bhavika-keswani/master
Welcome changed to clubs
Diffstat (limited to 'modules/bhavika/legal_forms1')
-rw-r--r--modules/bhavika/legal_forms1/composer.json13
-rw-r--r--modules/bhavika/legal_forms1/config/install/core.entity_form_display.node.legal_forms.default.yml103
-rw-r--r--modules/bhavika/legal_forms1/config/install/core.entity_view_display.node.legal_forms.default.yml43
-rw-r--r--modules/bhavika/legal_forms1/config/install/core.entity_view_display.node.legal_forms.teaser.yml23
-rw-r--r--modules/bhavika/legal_forms1/config/install/core.entity_view_display.taxonomy_term.legal_forms.default.yml16
-rw-r--r--modules/bhavika/legal_forms1/config/install/field.field.node.legal_forms.body.yml24
-rw-r--r--modules/bhavika/legal_forms1/config/install/field.field.node.legal_forms.field_form_type.yml31
-rw-r--r--modules/bhavika/legal_forms1/config/install/field.field.node.legal_forms.field_pdf_file.yml29
-rw-r--r--modules/bhavika/legal_forms1/config/install/field.storage.node.field_form_type.yml22
-rw-r--r--modules/bhavika/legal_forms1/config/install/field.storage.node.field_pdf_file.yml29
-rw-r--r--modules/bhavika/legal_forms1/config/install/migrate_plus.migration.legal_forms_import.yml57
-rw-r--r--modules/bhavika/legal_forms1/config/install/node.type.legal_forms.yml20
-rw-r--r--modules/bhavika/legal_forms1/config/install/taxonomy.vocabulary.legal_forms.yml8
-rw-r--r--modules/bhavika/legal_forms1/legal_forms1.info.yml17
-rw-r--r--modules/bhavika/legal_forms1/legal_forms1.install63
-rw-r--r--modules/bhavika/legal_forms1/legal_forms1.module35
-rw-r--r--modules/bhavika/legal_forms1/legal_forms1.routing.yml8
-rw-r--r--modules/bhavika/legal_forms1/src/Controller/LegalFormsController.php25
-rw-r--r--modules/bhavika/legal_forms1/templates/legal-forms1.html.twig1
-rw-r--r--modules/bhavika/legal_forms1/tests/Controller/LegalFormsControllerTest.php39
-rw-r--r--modules/bhavika/legal_forms1/tests/src/Functional/LoadTest.php46
21 files changed, 652 insertions, 0 deletions
diff --git a/modules/bhavika/legal_forms1/composer.json b/modules/bhavika/legal_forms1/composer.json
new file mode 100644
index 0000000..f9a3de8
--- /dev/null
+++ b/modules/bhavika/legal_forms1/composer.json
@@ -0,0 +1,13 @@
+{
+ "name": "legal_forms1",
+ "type": "drupal-module",
+ "description": "Legal forms is module for forms of site",
+ "keywords": [
+ ],
+ "homepage": "https://www.drupal.org/project/legal_forms1",
+ "minimum-stability": "dev",
+ "support": {
+ "issues": "https://www.drupal.org/project/issues/legal_forms1",
+ "source": "http://cgit.drupalcode.org/legal_forms1",
+ },
+}
diff --git a/modules/bhavika/legal_forms1/config/install/core.entity_form_display.node.legal_forms.default.yml b/modules/bhavika/legal_forms1/config/install/core.entity_form_display.node.legal_forms.default.yml
new file mode 100644
index 0000000..0a931fe
--- /dev/null
+++ b/modules/bhavika/legal_forms1/config/install/core.entity_form_display.node.legal_forms.default.yml
@@ -0,0 +1,103 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.legal_forms.body
+ - field.field.node.legal_forms.field_form_type
+ - field.field.node.legal_forms.field_pdf_file
+ - node.type.legal_forms
+ module:
+ - file
+ - path
+ - text
+ enforced:
+ module:
+ - legal_forms1
+id: node.legal_forms.default
+targetEntityType: node
+bundle: legal_forms
+mode: default
+content:
+ body:
+ weight: 26
+ settings:
+ rows: 9
+ summary_rows: 3
+ placeholder: ''
+ third_party_settings: { }
+ type: text_textarea_with_summary
+ region: content
+ created:
+ type: datetime_timestamp
+ weight: 3
+ region: content
+ settings: { }
+ third_party_settings: { }
+ field_form_type:
+ type: entity_reference_autocomplete
+ weight: 9
+ region: content
+ settings:
+ match_operator: CONTAINS
+ size: 60
+ placeholder: ''
+ third_party_settings: { }
+ field_pdf_file:
+ weight: 8
+ settings:
+ progress_indicator: throbber
+ third_party_settings: { }
+ type: file_generic
+ region: content
+ langcode:
+ type: language_select
+ weight: 1
+ region: content
+ settings:
+ include_locked: true
+ third_party_settings: { }
+ path:
+ type: path
+ weight: 6
+ region: content
+ settings: { }
+ third_party_settings: { }
+ promote:
+ type: boolean_checkbox
+ settings:
+ display_label: true
+ weight: 4
+ region: content
+ third_party_settings: { }
+ status:
+ type: boolean_checkbox
+ settings:
+ display_label: true
+ weight: 7
+ region: content
+ third_party_settings: { }
+ sticky:
+ type: boolean_checkbox
+ settings:
+ display_label: true
+ weight: 5
+ region: content
+ third_party_settings: { }
+ title:
+ type: string_textfield
+ weight: 0
+ region: content
+ settings:
+ size: 60
+ placeholder: ''
+ third_party_settings: { }
+ uid:
+ type: entity_reference_autocomplete
+ weight: 2
+ settings:
+ match_operator: CONTAINS
+ size: 60
+ placeholder: ''
+ region: content
+ third_party_settings: { }
+hidden: { }
diff --git a/modules/bhavika/legal_forms1/config/install/core.entity_view_display.node.legal_forms.default.yml b/modules/bhavika/legal_forms1/config/install/core.entity_view_display.node.legal_forms.default.yml
new file mode 100644
index 0000000..98a37b8
--- /dev/null
+++ b/modules/bhavika/legal_forms1/config/install/core.entity_view_display.node.legal_forms.default.yml
@@ -0,0 +1,43 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.legal_forms.body
+ - field.field.node.legal_forms.field_form_type
+ - field.field.node.legal_forms.field_pdf_file
+ - node.type.legal_forms
+ module:
+ - file
+ - text
+ - user
+ enforced:
+ module:
+ - legal_forms1
+id: node.legal_forms.default
+targetEntityType: node
+bundle: legal_forms
+mode: default
+content:
+ body:
+ weight: 2
+ label: above
+ settings: { }
+ third_party_settings: { }
+ type: text_default
+ region: content
+ field_pdf_file:
+ weight: 1
+ label: hidden
+ settings:
+ use_description_as_link_text: true
+ third_party_settings: { }
+ type: file_default
+ region: content
+ links:
+ weight: 0
+ region: content
+ settings: { }
+ third_party_settings: { }
+hidden:
+ field_form_type: true
+ langcode: true
diff --git a/modules/bhavika/legal_forms1/config/install/core.entity_view_display.node.legal_forms.teaser.yml b/modules/bhavika/legal_forms1/config/install/core.entity_view_display.node.legal_forms.teaser.yml
new file mode 100644
index 0000000..7bcb82f
--- /dev/null
+++ b/modules/bhavika/legal_forms1/config/install/core.entity_view_display.node.legal_forms.teaser.yml
@@ -0,0 +1,23 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - core.entity_view_mode.node.teaser
+ - field.field.node.legal_forms.field_form_type
+ - field.field.node.legal_forms.field_pdf_file
+ - node.type.legal_forms
+ module:
+ - user
+ enforced:
+ module:
+ - legal_forms1
+id: node.legal_forms.teaser
+targetEntityType: node
+bundle: legal_forms
+mode: teaser
+content: { }
+hidden:
+ field_form_type: true
+ field_pdf_file: true
+ langcode: true
+ links: true
diff --git a/modules/bhavika/legal_forms1/config/install/core.entity_view_display.taxonomy_term.legal_forms.default.yml b/modules/bhavika/legal_forms1/config/install/core.entity_view_display.taxonomy_term.legal_forms.default.yml
new file mode 100644
index 0000000..ecdeb34
--- /dev/null
+++ b/modules/bhavika/legal_forms1/config/install/core.entity_view_display.taxonomy_term.legal_forms.default.yml
@@ -0,0 +1,16 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - taxonomy.vocabulary.legal_forms
+ enforced:
+ module:
+ - legal_forms1
+id: taxonomy_term.legal_forms.default
+targetEntityType: taxonomy_term
+bundle: legal_forms
+mode: default
+content: { }
+hidden:
+ description: true
+ langcode: true
diff --git a/modules/bhavika/legal_forms1/config/install/field.field.node.legal_forms.body.yml b/modules/bhavika/legal_forms1/config/install/field.field.node.legal_forms.body.yml
new file mode 100644
index 0000000..ca37815
--- /dev/null
+++ b/modules/bhavika/legal_forms1/config/install/field.field.node.legal_forms.body.yml
@@ -0,0 +1,24 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.body
+ - node.type.legal_forms
+ module:
+ - text
+ enforced:
+ module:
+ - legal_forms1
+id: node.legal_forms.body
+field_name: body
+entity_type: node
+bundle: legal_forms
+label: Body
+description: ''
+required: false
+translatable: true
+default_value: { }
+default_value_callback: ''
+settings:
+ display_summary: false
+field_type: text_with_summary
diff --git a/modules/bhavika/legal_forms1/config/install/field.field.node.legal_forms.field_form_type.yml b/modules/bhavika/legal_forms1/config/install/field.field.node.legal_forms.field_form_type.yml
new file mode 100644
index 0000000..f07a9df
--- /dev/null
+++ b/modules/bhavika/legal_forms1/config/install/field.field.node.legal_forms.field_form_type.yml
@@ -0,0 +1,31 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_form_type
+ - node.type.legal_forms
+ - taxonomy.vocabulary.legal_forms
+ enforced:
+ module:
+ - legal_forms1
+id: node.legal_forms.field_form_type
+field_name: field_form_type
+entity_type: node
+bundle: legal_forms
+label: form_type
+description: ''
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ handler: 'default:taxonomy_term'
+ handler_settings:
+ target_bundles:
+ legal_forms: legal_forms
+ sort:
+ field: name
+ direction: asc
+ auto_create: false
+ auto_create_bundle: academics_category
+field_type: entity_reference
diff --git a/modules/bhavika/legal_forms1/config/install/field.field.node.legal_forms.field_pdf_file.yml b/modules/bhavika/legal_forms1/config/install/field.field.node.legal_forms.field_pdf_file.yml
new file mode 100644
index 0000000..8a4bfd2
--- /dev/null
+++ b/modules/bhavika/legal_forms1/config/install/field.field.node.legal_forms.field_pdf_file.yml
@@ -0,0 +1,29 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_pdf_file
+ - node.type.legal_forms
+ module:
+ - file
+ enforced:
+ module:
+ - legal_forms1
+id: node.legal_forms.field_pdf_file
+field_name: field_pdf_file
+entity_type: node
+bundle: legal_forms
+label: pdf_file
+description: ''
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ file_directory: pdf_files_lf
+ file_extensions: 'txt pdf jpg png zip'
+ max_filesize: ''
+ description_field: false
+ handler: 'default:file'
+ handler_settings: { }
+field_type: file
diff --git a/modules/bhavika/legal_forms1/config/install/field.storage.node.field_form_type.yml b/modules/bhavika/legal_forms1/config/install/field.storage.node.field_form_type.yml
new file mode 100644
index 0000000..2b6d88d
--- /dev/null
+++ b/modules/bhavika/legal_forms1/config/install/field.storage.node.field_form_type.yml
@@ -0,0 +1,22 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - node
+ - taxonomy
+ enforced:
+ module:
+ - legal_forms1
+id: node.field_form_type
+field_name: field_form_type
+entity_type: node
+type: entity_reference
+settings:
+ target_type: taxonomy_term
+module: core
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/bhavika/legal_forms1/config/install/field.storage.node.field_pdf_file.yml b/modules/bhavika/legal_forms1/config/install/field.storage.node.field_pdf_file.yml
new file mode 100644
index 0000000..bacd3db
--- /dev/null
+++ b/modules/bhavika/legal_forms1/config/install/field.storage.node.field_pdf_file.yml
@@ -0,0 +1,29 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ # - field_permissions
+ - file
+ - node
+ enforced:
+ module:
+ - legal_forms1
+# third_party_settings:
+# field_permissions:
+# permission_type: public
+id: node.field_pdf_file
+field_name: field_pdf_file
+entity_type: node
+type: file
+settings:
+ display_field: false
+ display_default: false
+ uri_scheme: public
+ target_type: file
+module: file
+locked: false
+cardinality: -1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/bhavika/legal_forms1/config/install/migrate_plus.migration.legal_forms_import.yml b/modules/bhavika/legal_forms1/config/install/migrate_plus.migration.legal_forms_import.yml
new file mode 100644
index 0000000..48507e3
--- /dev/null
+++ b/modules/bhavika/legal_forms1/config/install/migrate_plus.migration.legal_forms_import.yml
@@ -0,0 +1,57 @@
+uuid: 5098d90e-b0d2-4895-9643-c1c6f62ab657
+language: en
+migration_group: default
+id: legal_forms_import
+label: 'legal_forms_import'
+source:
+ plugin: csv
+ path: /var/www/legal forms/csv/legal_forms.csv
+ delimiter: ','
+ enclosure: '"'
+ header_row_count: 1
+ keys:
+ - id
+ constants:
+ file_source: /var/www/legal forms/files
+ file_dest: 'public://pdf_files_lf/'
+process:
+ type:
+ plugin: default_value
+ default_value: legal_forms
+ source_path:
+ -
+ plugin: skip_on_empty
+ method: process
+ source: files
+ -
+ plugin: concat
+ delimiter: /
+ source:
+ - constants/file_source
+ - files
+ title: title
+ body/value: body
+ body/format:
+ plugin: default_value
+ default_value: basic_html
+ field_form_type:
+ -
+ plugin: entity_lookup
+ entity_type: taxonomy_term
+ bundle: legal_forms
+ source: form_type
+ field_pdf_file:
+ -
+ plugin: explode
+ delimiter: ','
+ source: files
+ -
+ plugin: file_import
+ # source: '@source_path'
+ destination: constants/file_dest
+destination:
+ plugin: 'entity:node'
+ bundle: legal_forms
+migration_dependencies:
+ required: { }
+ optional: { } \ No newline at end of file
diff --git a/modules/bhavika/legal_forms1/config/install/node.type.legal_forms.yml b/modules/bhavika/legal_forms1/config/install/node.type.legal_forms.yml
new file mode 100644
index 0000000..0b37dcb
--- /dev/null
+++ b/modules/bhavika/legal_forms1/config/install/node.type.legal_forms.yml
@@ -0,0 +1,20 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - menu_ui
+ enforced:
+ module:
+ - legal_forms1
+# third_party_settings:
+# menu_ui:
+# available_menus:
+# - main
+# parent: 'main:'
+name: 'Legal Forms'
+type: legal_forms
+description: ''
+help: ''
+new_revision: true
+preview_mode: 1
+display_submitted: true
diff --git a/modules/bhavika/legal_forms1/config/install/taxonomy.vocabulary.legal_forms.yml b/modules/bhavika/legal_forms1/config/install/taxonomy.vocabulary.legal_forms.yml
new file mode 100644
index 0000000..637fa3c
--- /dev/null
+++ b/modules/bhavika/legal_forms1/config/install/taxonomy.vocabulary.legal_forms.yml
@@ -0,0 +1,8 @@
+langcode: en
+status: true
+dependencies: { }
+name: legal_forms
+vid: legal_forms
+description: ''
+hierarchy: 0
+weight: 0
diff --git a/modules/bhavika/legal_forms1/legal_forms1.info.yml b/modules/bhavika/legal_forms1/legal_forms1.info.yml
new file mode 100644
index 0000000..9ab3562
--- /dev/null
+++ b/modules/bhavika/legal_forms1/legal_forms1.info.yml
@@ -0,0 +1,17 @@
+name: legal_forms1
+type: module
+description: 'Legal forms is module for forms of site'
+core: 8.x
+package: Custom
+dependencies:
+ - drupal:node
+ - drupal:text
+ - drupal:file
+ - drupal:user
+ - drupal:menu_ui
+ - drupal:taxonomy
+ - drupal:options
+ - drupal:path
+ - ds:ds
+ - pathauto:pathauto
+
diff --git a/modules/bhavika/legal_forms1/legal_forms1.install b/modules/bhavika/legal_forms1/legal_forms1.install
new file mode 100644
index 0000000..794dd6f
--- /dev/null
+++ b/modules/bhavika/legal_forms1/legal_forms1.install
@@ -0,0 +1,63 @@
+<?php
+
+
+/**
+
+
+* Implements hook_uninstall().
+
+
+*/
+
+
+function legal_forms1_uninstall() { //<-- replace “welcome” with your module machine name
+
+
+ // Load services.
+
+
+ $queryFactory = \Drupal::service('entity.query');
+
+
+ $nodeStorage = \Drupal::entityManager()->getStorage('node');
+
+
+
+
+
+
+
+ // Query all entity.
+
+
+ $query = $queryFactory->get('node')
+// <-- replace event in below line with your content type machine name
+
+
+ ->condition('type', 'legal_forms');
+
+
+ $nids = $query->execute();
+
+
+
+
+
+
+
+ // Delete entities.
+
+
+ if (!empty($nids)) {
+
+
+ $entities = $nodeStorage->loadMultiple($nids);
+
+
+ $nodeStorage->delete($entities);
+
+
+ }
+
+
+}
diff --git a/modules/bhavika/legal_forms1/legal_forms1.module b/modules/bhavika/legal_forms1/legal_forms1.module
new file mode 100644
index 0000000..b3621f3
--- /dev/null
+++ b/modules/bhavika/legal_forms1/legal_forms1.module
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * @file
+ * Contains legal_forms1.module.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function legal_forms1_help($route_name, RouteMatchInterface $route_match) {
+ switch ($route_name) {
+ // Main module help for the legal_forms1 module.
+ case 'help.page.legal_forms1':
+ $output = '';
+ $output .= '<h3>' . t('About') . '</h3>';
+ $output .= '<p>' . t('Legal forms is module for forms of site') . '</p>';
+ return $output;
+
+ default:
+ }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function legal_forms1_theme() {
+ return [
+ 'legal_forms1' => [
+ 'render element' => 'children',
+ ],
+ ];
+}
diff --git a/modules/bhavika/legal_forms1/legal_forms1.routing.yml b/modules/bhavika/legal_forms1/legal_forms1.routing.yml
new file mode 100644
index 0000000..6007e60
--- /dev/null
+++ b/modules/bhavika/legal_forms1/legal_forms1.routing.yml
@@ -0,0 +1,8 @@
+
+legal_forms1.legal_forms_controller_legalforms:
+ path: '/legal_forms1'
+ defaults:
+ _controller: '\Drupal\legal_forms1\Controller\LegalFormsController::legalforms'
+ _title: 'legalforms'
+ requirements:
+ _permission: 'access content'
diff --git a/modules/bhavika/legal_forms1/src/Controller/LegalFormsController.php b/modules/bhavika/legal_forms1/src/Controller/LegalFormsController.php
new file mode 100644
index 0000000..4f74371
--- /dev/null
+++ b/modules/bhavika/legal_forms1/src/Controller/LegalFormsController.php
@@ -0,0 +1,25 @@
+<?php
+
+namespace Drupal\legal_forms1\Controller;
+
+use Drupal\Core\Controller\ControllerBase;
+
+/**
+ * Class LegalFormsController.
+ */
+class LegalFormsController extends ControllerBase {
+
+ /**
+ * Legalforms.
+ *
+ * @return string
+ * Return Hello string.
+ */
+ public function legalforms() {
+ return [
+ '#type' => 'markup',
+ '#markup' => $this->t('Implement method: legalforms')
+ ];
+ }
+
+}
diff --git a/modules/bhavika/legal_forms1/templates/legal-forms1.html.twig b/modules/bhavika/legal_forms1/templates/legal-forms1.html.twig
new file mode 100644
index 0000000..95722bd
--- /dev/null
+++ b/modules/bhavika/legal_forms1/templates/legal-forms1.html.twig
@@ -0,0 +1 @@
+<!-- Add you custom twig html here -->
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 @@
+<?php
+
+namespace Drupal\legal_forms1\Tests;
+
+use Drupal\simpletest\WebTestBase;
+
+/**
+ * Provides automated tests for the legal_forms1 module.
+ */
+class LegalFormsControllerTest extends WebTestBase {
+
+
+ /**
+ * {@inheritdoc}
+ */
+ public static function getInfo() {
+ return [
+ 'name' => "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 @@
+<?php
+
+namespace Drupal\Tests\legal_forms1\Functional;
+
+use Drupal\Core\Url;
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * Simple test to ensure that main page loads with module enabled.
+ *
+ * @group legal_forms1
+ */
+class LoadTest extends BrowserTestBase {
+
+ /**
+ * Modules to enable.
+ *
+ * @var array
+ */
+ public static $modules = ['legal_forms1'];
+
+ /**
+ * A user with permission to administer site configuration.
+ *
+ * @var \Drupal\user\UserInterface
+ */
+ protected $user;
+
+ /**
+ * {@inheritdoc}
+ */
+ protected function setUp() {
+ parent::setUp();
+ $this->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('<front>'));
+ $this->assertSession()->statusCodeEquals(200);
+ }
+
+}