summaryrefslogtreecommitdiff
path: root/modules/kalpesh/achivements/tests/src
diff options
context:
space:
mode:
authorNitesh Kumar Sinha2019-07-03 17:43:33 +0530
committerGitHub2019-07-03 17:43:33 +0530
commit779f770a2022c3792d5e2dae95e0381093fb8989 (patch)
treeabdd8c069b9f40dcbf5896f3532e9b6d0df3186b /modules/kalpesh/achivements/tests/src
parentb7d155a06ae52fcee0b66123b6ea36556336ea18 (diff)
parentf71a4f5fe7d1f3536e85759740d7779825f9c306 (diff)
downloadacadmix_distribution-779f770a2022c3792d5e2dae95e0381093fb8989.tar.gz
acadmix_distribution-779f770a2022c3792d5e2dae95e0381093fb8989.tar.bz2
acadmix_distribution-779f770a2022c3792d5e2dae95e0381093fb8989.zip
Merge pull request #20 from oskkw/master
kalpesh custom module added
Diffstat (limited to 'modules/kalpesh/achivements/tests/src')
-rw-r--r--modules/kalpesh/achivements/tests/src/Functional/LoadTest.php46
1 files changed, 46 insertions, 0 deletions
diff --git a/modules/kalpesh/achivements/tests/src/Functional/LoadTest.php b/modules/kalpesh/achivements/tests/src/Functional/LoadTest.php
new file mode 100644
index 0000000..e50c1f8
--- /dev/null
+++ b/modules/kalpesh/achivements/tests/src/Functional/LoadTest.php
@@ -0,0 +1,46 @@
+<?php
+
+namespace Drupal\Tests\achivements\Functional;
+
+use Drupal\Core\Url;
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * Simple test to ensure that main page loads with module enabled.
+ *
+ * @group achivements
+ */
+class LoadTest extends BrowserTestBase {
+
+ /**
+ * Modules to enable.
+ *
+ * @var array
+ */
+ public static $modules = ['achivements'];
+
+ /**
+ * 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);
+ }
+
+}