You are here

public function SessionManagerDestroyNoCliCheckTest::testCallSessionManagerStartAndDestroy in Drupal 10

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Session/SessionManagerDestroyNoCliCheckTest.php \Drupal\KernelTests\Core\Session\SessionManagerDestroyNoCliCheckTest::testCallSessionManagerStartAndDestroy()

Tests starting and destroying a session from the CLI.

File

core/tests/Drupal/KernelTests/Core/Session/SessionManagerDestroyNoCliCheckTest.php, line 17

Class

SessionManagerDestroyNoCliCheckTest
Tests starting and destroying a session from the CLI.

Namespace

Drupal\KernelTests\Core\Session

Code

public function testCallSessionManagerStartAndDestroy() {
  $this
    ->assertFalse(\Drupal::service('session_manager')
    ->start());
  $this
    ->assertNull(\Drupal::service('session_manager')
    ->destroy());
}