public function SimplesamlphpAuthManagerTest::testExternalAuthenticate in simpleSAMLphp Authentication 8.3
Tests externalAuthenticate() method.
@covers ::__construct @covers ::externalAuthenticate
File
- tests/
src/ Unit/ Service/ SimplesamlphpAuthManagerTest.php, line 211
Class
- SimplesamlphpAuthManagerTest
- SimplesamlphpAuthManager unit tests.
Namespace
Drupal\Tests\simplesamlphp_auth\Unit\ServiceCode
public function testExternalAuthenticate() {
// Set expectations for instance.
$this->instance
->expects($this
->once())
->method('requireAuth');
// Test externalAuthenticate() method.
$simplesaml = $this
->getManagerInContext();
$simplesaml
->externalAuthenticate();
}