protected $defaultTheme = 'stark';
/**
* Tests a request.
*/
public function testRequest() { $options['query'
][MainContentViewSubscriber::WRAPPER_FORMAT
] = 'drupal_ajax';
$headers[] = 'X-Requested-With: XMLHttpRequest';
$actual_trace =
json_decode($this->
drupalGet('session-test/trace-handler',
$options,
$headers));
$sessionId =
$this->
getSessionCookies()->
getCookieByName($this->
getSessionName())->
getValue();
$expect_trace =
[ ['BEGIN', 'test_argument', 'open'
],
['BEGIN', NULL, 'open'
],
['END', NULL, 'open'
],
['END', 'test_argument', 'open'
],
['BEGIN', 'test_argument', 'read',
$sessionId],
['BEGIN', NULL, 'read',
$sessionId],
['END', NULL, 'read',
$sessionId],
['END', 'test_argument', 'read',
$sessionId],
['BEGIN', 'test_argument', 'write',
$sessionId],
['BEGIN', NULL, 'write',
$sessionId],
[