class SessionManagerDestroyNoCliCheckTest
Same name and namespace in other branches
- 11.x core/tests/Drupal/KernelTests/Core/Session/SessionManagerDestroyNoCliCheckTest.php \Drupal\KernelTests\Core\Session\SessionManagerDestroyNoCliCheckTest
- 10 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 implements \Drupal\Core\DependencyInjection\ServiceProviderInterface uses \Drupal\KernelTests\AssertLegacyTrait, \Drupal\KernelTests\AssertContentTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\ExtensionListTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\KernelTests\Core\Session\SessionManagerDestroyNoCliCheckTest extends \Drupal\KernelTests\KernelTestBase
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());
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.