diff options
author | Nitesh Kumar Sinha | 2019-07-02 17:40:53 +0530 |
---|---|---|
committer | GitHub | 2019-07-02 17:40:53 +0530 |
commit | 58dbf8fcb04c01c338b9e346b8266690c8b92a2f (patch) | |
tree | ab16a85a8213c31f2abaf34e9d7df44a0f7132ac /modules/mansimran/sae_teams/tests | |
parent | c63a20a2e293cb104027480a5770406e3f17c514 (diff) | |
parent | 0d50e51638dac37bb5133b5024f2e44811e2745e (diff) | |
download | acadmix_distribution-58dbf8fcb04c01c338b9e346b8266690c8b92a2f.tar.gz acadmix_distribution-58dbf8fcb04c01c338b9e346b8266690c8b92a2f.tar.bz2 acadmix_distribution-58dbf8fcb04c01c338b9e346b8266690c8b92a2f.zip |
Merge pull request #15 from FOSSEE/stage
merging Stage into master
Diffstat (limited to 'modules/mansimran/sae_teams/tests')
-rw-r--r-- | modules/mansimran/sae_teams/tests/src/Functional/LoadTest.php | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/modules/mansimran/sae_teams/tests/src/Functional/LoadTest.php b/modules/mansimran/sae_teams/tests/src/Functional/LoadTest.php new file mode 100644 index 0000000..29e42d5 --- /dev/null +++ b/modules/mansimran/sae_teams/tests/src/Functional/LoadTest.php @@ -0,0 +1,46 @@ +<?php + +namespace Drupal\Tests\sae_teams\Functional; + +use Drupal\Core\Url; +use Drupal\Tests\BrowserTestBase; + +/** + * Simple test to ensure that main page loads with module enabled. + * + * @group sae_teams + */ +class LoadTest extends BrowserTestBase { + + /** + * Modules to enable. + * + * @var array + */ + public static $modules = ['sae_teams']; + + /** + * 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); + } + +} |