You are here

public function AuthmapTest::testDeleteProviders in External Authentication 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Unit/AuthmapTest.php \Drupal\Tests\externalauth\Unit\AuthmapTest::testDeleteProviders()

Test deleteProviders() method.

@covers ::deleteProvider @covers ::__construct

File

tests/src/Unit/AuthmapTest.php, line 279

Class

AuthmapTest
Authmap unit tests.

Namespace

Drupal\Tests\externalauth\Unit

Code

public function testDeleteProviders() {
  $this->connection
    ->expects($this
    ->once())
    ->method('delete')
    ->with($this
    ->equalTo('authmap'))
    ->will($this
    ->returnValue($this->delete));
  $authmap = new Authmap($this->connection);
  $authmap
    ->deleteProvider("test_provider");
}