function SessionConfigurationTest::createSessionConfiguration
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php \Drupal\Tests\Core\Session\SessionConfigurationTest::createSessionConfiguration()
- 10 core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php \Drupal\Tests\Core\Session\SessionConfigurationTest::createSessionConfiguration()
- 8.9.x 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
File
-
core/
tests/ Drupal/ Tests/ Core/ Session/ SessionConfigurationTest.php, line 19
Class
- SessionConfigurationTest
- @coversDefaultClass \Drupal\Core\Session\SessionConfiguration[[api-linebreak]] @group Session
Namespace
Drupal\Tests\Core\SessionCode
protected function createSessionConfiguration($options = []) {
return $this->getMockBuilder('Drupal\\Core\\Session\\SessionConfiguration')
->onlyMethods([
'drupalValidTestUa',
])
->setConstructorArgs([
$options,
])
->getMock();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.