You are here

public function SimplesamlphpAuthManagerTest::testLogout in simpleSAMLphp Authentication 8.3

Tests logout() method.

@covers ::__construct @covers ::logout

File

tests/src/Unit/Service/SimplesamlphpAuthManagerTest.php, line 319

Class

SimplesamlphpAuthManagerTest
SimplesamlphpAuthManager unit tests.

Namespace

Drupal\Tests\simplesamlphp_auth\Unit\Service

Code

public function testLogout() {
  $redirect_path = '<front>';

  // Set expectations for instance.
  $this->instance
    ->expects($this
    ->once())
    ->method('logout')
    ->with($this
    ->equalTo($redirect_path));

  // Test logout() method.
  $simplesaml = $this
    ->getManagerInContext();
  $simplesaml
    ->logout($redirect_path);
}