function XdebugRequestTraitTest::testExtractCookiesFromRequest
Same name in other branches
- 10 core/tests/Drupal/Tests/Core/Test/XdebugRequestTraitTest.php \Drupal\Tests\Core\Test\XdebugRequestTraitTest::testExtractCookiesFromRequest()
- 11.x core/tests/Drupal/Tests/Core/Test/XdebugRequestTraitTest.php \Drupal\Tests\Core\Test\XdebugRequestTraitTest::testExtractCookiesFromRequest()
Tests that Xdebug cookies are extracted from a request correctly.
@covers ::extractCookiesFromRequest @dataProvider extractCookiesDataProvider
Parameters
array $server: The request server array.
array $expected_cookies: The expected cookies for the request.
File
-
core/
tests/ Drupal/ Tests/ Core/ Test/ XdebugRequestTraitTest.php, line 30
Class
- XdebugRequestTraitTest
- Provides tests for the Xdebug request trait.
Namespace
Drupal\Tests\Core\TestCode
public function testExtractCookiesFromRequest(array $server, array $expected_cookies) : void {
$request = new Request([], [], [], [], [], $server);
$this->assertSame($expected_cookies, $this->extractCookiesFromRequest($request));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.