LoadTest.php in Shibboleth Authentication 8
File
src/Tests/LoadTest.php
View source
<?php
namespace Drupal\shib_auth\Tests;
use Drupal\Core\Url;
use Drupal\simpletest\WebTestBase;
class LoadTest extends WebTestBase {
public static $modules = [
'shib_auth',
];
protected $user;
protected function setUp() {
parent::setUp();
$this->user = $this
->drupalCreateUser([
'administer site configuration',
]);
$this
->drupalLogin($this->user);
}
public function testLoad() {
$this
->drupalGet(Url::fromRoute('<front>'));
$this
->assertResponse(200);
}
}
Classes
Name |
Description |
LoadTest |
Simple test to ensure that main page loads with module enabled. |