public function SamlTest::testAdminPage in SAML Authentication 4.x
Same name and namespace in other branches
- 8.3 src/Tests/SamlTest.php \Drupal\samlauth\Tests\SamlTest::testAdminPage()
- 8 src/Tests/SamlTest.php \Drupal\samlauth\Tests\SamlTest::testAdminPage()
- 8.2 src/Tests/SamlTest.php \Drupal\samlauth\Tests\SamlTest::testAdminPage()
Tests the Admin Page.
File
- src/
Tests/ SamlTest.php, line 64
Class
- SamlTest
- Semi random tests for the samlauth module.
Namespace
Drupal\samlauth\TestsCode
public function testAdminPage() {
// Test that the administration page is present.
// These aren't very good tests, but the form and config systems are already
// thoroughly tested, so we're just checking the basics here.
$web_user = $this
->drupalCreateUser([
'configure saml',
]);
$this
->drupalLogin($web_user);
$this
->drupalGet('admin/config/people/saml');
$this
->assertText('Login / Logout', 'Login / Logout fieldset present');
$this
->assertText('Service Provider', 'SP fieldset present');
$this
->assertText('Identity Provider', 'iDP fieldset present');
$this
->assertText('User Info and Syncing', 'User Info and Syncing fieldset present');
$this
->assertText('SAML Message Construction', 'SAML Message Construction fieldset present');
$this
->assertText('SAML Message Validation', 'SAML Message Validation fieldset present');
}