ksort($actual_stream_order, SORT_NUMERIC
);
$this->
assertEquals($expected_stream_order,
array_values($actual_stream_order));
} /**
* Ensures CSRF tokens can be generated for the current user's session.
*/
protected function setCsrfTokenSeedInTestEnvironment() { $session_data =
$this->container->
get('session_handler.write_safe'
)->
read($this->
getSession()->
getCookie($this->
getSessionName()));
$csrf_token_seed =
unserialize(explode('_sf2_meta|',
$session_data)[1
])['s'
];
$this->container->
get('session_manager.metadata_bag'
)->
setCsrfTokenSeed($csrf_token_seed);
} /**
* @return \Drupal\big_pipe_test\BigPipePlaceholderTestCase[]
*/
protected function getTestCases($has_session = TRUE
) { return BigPipePlaceholderTestCases::
cases($this->container,
$this->rootUser
);
} /**
* Asserts whether arrays A and B are equal, when treated as sets.
*
* @todo This method is broken. Fix it in
* https://www.drupal.org/project/drupal/issues/3144926
*
* @internal
*/