function SessionManagerDestroyNoCliCheckTest::testCallSessionManagerStartAndDestroy
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/Session/SessionManagerDestroyNoCliCheckTest.php \Drupal\KernelTests\Core\Session\SessionManagerDestroyNoCliCheckTest::testCallSessionManagerStartAndDestroy()
- 10 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 19
Class
- SessionManagerDestroyNoCliCheckTest
- Tests starting and destroying a session from the CLI.
Namespace
Drupal\KernelTests\Core\SessionCode
public function testCallSessionManagerStartAndDestroy() : void {
$this->assertFalse(\Drupal::service('session_manager')->start());
$this->assertNull(\Drupal::service('session_manager')->destroy());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.