class SessionManagerDestroyNoCliCheckTest in Drupal 10
Same name and namespace in other branches
- 9 core/tests/Drupal/KernelTests/Core/Session/SessionManagerDestroyNoCliCheckTest.php \Drupal\KernelTests\Core\Session\SessionManagerDestroyNoCliCheckTest
Tests starting and destroying a session from the CLI.
@group Session
Hierarchy
- class \Drupal\KernelTests\KernelTestBase extends \PHPUnit\Framework\TestCase implements ServiceProviderInterface uses \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, AssertContentTrait, ConfigTestTrait, ExtensionListTestTrait, RandomGeneratorTrait, TestRequirementsTrait, PhpUnitWarnings
- class \Drupal\KernelTests\Core\Session\SessionManagerDestroyNoCliCheckTest
Expanded class hierarchy of SessionManagerDestroyNoCliCheckTest
File
- core/
tests/ Drupal/ KernelTests/ Core/ Session/ SessionManagerDestroyNoCliCheckTest.php, line 12
Namespace
Drupal\KernelTests\Core\SessionView source
class SessionManagerDestroyNoCliCheckTest extends KernelTestBase {
/**
* Tests starting and destroying a session from the CLI.
*/
public function testCallSessionManagerStartAndDestroy() {
$this
->assertFalse(\Drupal::service('session_manager')
->start());
$this
->assertNull(\Drupal::service('session_manager')
->destroy());
}
}