You are here

public function EntityCollectorTest::testDeleteMultipleTokens in Simple OAuth (OAuth2) & OpenID Connect 8.2

Same name and namespace in other branches
  1. 8.4 tests/src/Unit/EntityCollectorTest.php \Drupal\Tests\simple_oauth\Unit\EntityCollectorTest::testDeleteMultipleTokens()
  2. 8.3 tests/src/Unit/EntityCollectorTest.php \Drupal\Tests\simple_oauth\Unit\EntityCollectorTest::testDeleteMultipleTokens()
  3. 5.x tests/src/Unit/EntityCollectorTest.php \Drupal\Tests\simple_oauth\Unit\EntityCollectorTest::testDeleteMultipleTokens()

@covers ::collect

File

tests/src/Unit/EntityCollectorTest.php, line 69

Class

EntityCollectorTest
@coversDefaultClass \Drupal\simple_oauth\ExpiredCollector @group simple_oauth

Namespace

Drupal\Tests\simple_oauth\Unit

Code

public function testDeleteMultipleTokens() {
  list($expired_collector, , $storage) = $this
    ->buildProphecies();
  $storage
    ->delete([
    'foo',
  ])
    ->shouldBeCalledTimes(1);
  $expired_collector
    ->deleteMultipleTokens([
    'foo',
  ]);
}