You are here

protected function SessionConfigurationTest::createSessionConfiguration in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php \Drupal\Tests\Core\Session\SessionConfigurationTest::createSessionConfiguration()

Constructs a partially mocked SUT.

@returns \Drupal\Core\Session\SessionConfiguration|\PHPUnit_Framework_MockObject_MockObject

6 calls to SessionConfigurationTest::createSessionConfiguration()
SessionConfigurationTest::testCookieSecure in core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php
Tests whether the session.cookie_secure ini settings is computed correctly.
SessionConfigurationTest::testCookieSecureNotOverridable in core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php
Tests that session.cookie_secure ini settings cannot be overridden.
SessionConfigurationTest::testEnforcedCookieDomain in core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php
Tests the constructor injected session.cookie_domain ini setting.
SessionConfigurationTest::testEnforcedSessionNameViaCookieDomain in core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php
Tests whether the session.name ini settings is computed correctly.
SessionConfigurationTest::testGeneratedCookieDomain in core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php
Tests whether the session.cookie_domain ini settings is computed correctly.

... See full list

File

core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php, line 24
Contains \Drupal\Tests\Core\Session\SessionConfigurationTest.

Class

SessionConfigurationTest
@coversDefaultClass \Drupal\Core\Session\SessionConfiguration @group Session

Namespace

Drupal\Tests\Core\Session

Code

protected function createSessionConfiguration($options = []) {
  return $this
    ->getMock('Drupal\\Core\\Session\\SessionConfiguration', [
    'drupalValidTestUa',
  ], [
    $options,
  ]);
}