public function SamlTest::testMetadata in SAML Authentication 8
Same name and namespace in other branches
- 8.3 src/Tests/SamlTest.php \Drupal\samlauth\Tests\SamlTest::testMetadata()
- 8.2 src/Tests/SamlTest.php \Drupal\samlauth\Tests\SamlTest::testMetadata()
- 4.x src/Tests/SamlTest.php \Drupal\samlauth\Tests\SamlTest::testMetadata()
File
- src/
Tests/ SamlTest.php, line 56 - Simpletests for samlauth functionality.
Class
- SamlTest
- Tests SAML authentication.
Namespace
Drupal\samlauth\TestsCode
public function testMetadata() {
$web_user = $this
->drupalCreateUser([
'view sp metadata',
]);
$this
->drupalLogin($web_user);
// Test that we get metadata.
$this
->drupalGet('saml/metadata');
$this
->assertResponse(200, 'SP metadata is accessible');
$this
->assertRaw('entityID="samlauth"', 'Entity ID found in the metadata');
}