summaryrefslogtreecommitdiff
path: root/modules/bhavika/clubs/tests/src
diff options
context:
space:
mode:
authorBhavika-keswani2019-07-02 17:09:44 +0530
committerBhavika-keswani2019-07-02 17:09:44 +0530
commitdfbf9d3e8acfb503ddf7785b35b0ab85f7c3351a (patch)
tree4b429a480a1b52a2e90026f43d0a6e77c32e6899 /modules/bhavika/clubs/tests/src
parent853d6c426831f26a2dc49872fc5a0c9f6de58fc9 (diff)
downloadacadmix_distribution-dfbf9d3e8acfb503ddf7785b35b0ab85f7c3351a.tar.gz
acadmix_distribution-dfbf9d3e8acfb503ddf7785b35b0ab85f7c3351a.tar.bz2
acadmix_distribution-dfbf9d3e8acfb503ddf7785b35b0ab85f7c3351a.zip
Welcome changed to clubs
Diffstat (limited to 'modules/bhavika/clubs/tests/src')
-rw-r--r--modules/bhavika/clubs/tests/src/Functional/LoadTest.php46
1 files changed, 46 insertions, 0 deletions
diff --git a/modules/bhavika/clubs/tests/src/Functional/LoadTest.php b/modules/bhavika/clubs/tests/src/Functional/LoadTest.php
new file mode 100644
index 0000000..caa6ac0
--- /dev/null
+++ b/modules/bhavika/clubs/tests/src/Functional/LoadTest.php
@@ -0,0 +1,46 @@
+<?php
+
+namespace Drupal\Tests\welcome\Functional;
+
+use Drupal\Core\Url;
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * Simple test to ensure that main page loads with module enabled.
+ *
+ * @group welcome
+ */
+class LoadTest extends BrowserTestBase {
+
+ /**
+ * Modules to enable.
+ *
+ * @var array
+ */
+ public static $modules = ['welcome'];
+
+ /**
+ * 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);
+ }
+
+}