SessionManagerDestroyNoCliCheckTest.php

Same filename in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Session/SessionManagerDestroyNoCliCheckTest.php
  2. 11.x core/tests/Drupal/KernelTests/Core/Session/SessionManagerDestroyNoCliCheckTest.php

Namespace

Drupal\KernelTests\Core\Session

File

core/tests/Drupal/KernelTests/Core/Session/SessionManagerDestroyNoCliCheckTest.php

View source
<?php

declare (strict_types=1);
namespace Drupal\KernelTests\Core\Session;

use Drupal\KernelTests\KernelTestBase;

/**
 * Tests starting and destroying a session from the CLI.
 *
 * @group Session
 */
class SessionManagerDestroyNoCliCheckTest extends KernelTestBase {
    
    /**
     * Tests starting and destroying a session from the CLI.
     */
    public function testCallSessionManagerStartAndDestroy() : void {
        $this->assertFalse(\Drupal::service('session_manager')->start());
        $this->assertNull(\Drupal::service('session_manager')->destroy());
    }

}

Classes

Title Deprecated Summary
SessionManagerDestroyNoCliCheckTest Tests starting and destroying a session from the CLI.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.