diff options
author | Nitesh Kumar Sinha | 2019-07-02 13:32:41 +0530 |
---|---|---|
committer | GitHub | 2019-07-02 13:32:41 +0530 |
commit | 40040427eb696b443a52db952ce6915d3ee72a97 (patch) | |
tree | 5dde0580ac282768aeb48226e7d10c2e3f691172 /modules/fahad/bog_meetings/tests/src/Functional/LoadTest.php | |
parent | 222f1780ed0f5c3536392df3236284d3a9ab5405 (diff) | |
parent | 5f6ba9cf4aee260e4192f194ed14d3bc9dd1b467 (diff) | |
download | acadmix_distribution-40040427eb696b443a52db952ce6915d3ee72a97.tar.gz acadmix_distribution-40040427eb696b443a52db952ce6915d3ee72a97.tar.bz2 acadmix_distribution-40040427eb696b443a52db952ce6915d3ee72a97.zip |
Merge pull request #6 from fahad-israr/master
Fahad: Custom Module Added
Diffstat (limited to 'modules/fahad/bog_meetings/tests/src/Functional/LoadTest.php')
-rw-r--r-- | modules/fahad/bog_meetings/tests/src/Functional/LoadTest.php | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/modules/fahad/bog_meetings/tests/src/Functional/LoadTest.php b/modules/fahad/bog_meetings/tests/src/Functional/LoadTest.php new file mode 100644 index 0000000..7f21cec --- /dev/null +++ b/modules/fahad/bog_meetings/tests/src/Functional/LoadTest.php @@ -0,0 +1,46 @@ +<?php + +namespace Drupal\Tests\bog_meetings\Functional; + +use Drupal\Core\Url; +use Drupal\Tests\BrowserTestBase; + +/** + * Simple test to ensure that main page loads with module enabled. + * + * @group bog_meetings + */ +class LoadTest extends BrowserTestBase { + + /** + * Modules to enable. + * + * @var array + */ + public static $modules = ['bog_meetings']; + + /** + * 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); + } + +} |