'));
- $this->assertSessionCookieOnClient(TRUE);
- $this->assertRaw('Session exists!');
- $this->assertRaw('[session.exists]=1');
- }
-
- /**
- * Asserts whether a session cookie is present on the client or not.
- */
- function assertSessionCookieOnClient($expected_present) {
- $non_deleted_cookies = array_filter($this->cookies, function ($item) { return $item['value'] !== 'deleted'; });
- $this->assertEqual($expected_present, isset($non_deleted_cookies[$this->getSessionName()]), 'Session cookie exists.');
- }
-
-}
diff --git a/core/modules/big_pipe/tests/modules/session_exists_cache_context_test/session_exists_cache_context_test.info.yml b/core/modules/big_pipe/tests/modules/session_exists_cache_context_test/session_exists_cache_context_test.info.yml
deleted file mode 100644
index b376a57..0000000
--- a/core/modules/big_pipe/tests/modules/session_exists_cache_context_test/session_exists_cache_context_test.info.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-name: 'session.exists cache context test'
-type: module
-description: 'Support module for session.exists cache context testing.'
-package: Testing
-version: VERSION
-core: 8.x
diff --git a/core/modules/big_pipe/tests/modules/session_exists_cache_context_test/session_exists_cache_context_test.module b/core/modules/big_pipe/tests/modules/session_exists_cache_context_test/session_exists_cache_context_test.module
deleted file mode 100644
index b4179c0..0000000
--- a/core/modules/big_pipe/tests/modules/session_exists_cache_context_test/session_exists_cache_context_test.module
+++ /dev/null
@@ -1,24 +0,0 @@
-hasSession($request);
- $page_top['session_exists_cache_context_test'] = [
- 'label' => [
- '#markup' => '' . ($session_exists ? 'Session exists!' : 'Session does not exist!') . '
',
- ],
- 'cache_context_value' => [
- '#markup' => '[session.exists]=' . \Drupal::service('cache_context.session.exists')->getContext() . '
',
- ],
- ];
-
- if (\Drupal::request()->query->get('trigger_session')) {
- $_SESSION['session_exists_cache_context_test'] = TRUE;
- }
-}