X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fbig_pipe%2Fsrc%2FTests%2FBigPipeTest.php;fp=web%2Fcore%2Fmodules%2Fbig_pipe%2Fsrc%2FTests%2FBigPipeTest.php;h=0000000000000000000000000000000000000000;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=a4d5562008d16e7100827b23ebbe68251ba7dd0b;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/web/core/modules/big_pipe/src/Tests/BigPipeTest.php b/web/core/modules/big_pipe/src/Tests/BigPipeTest.php deleted file mode 100644 index a4d556200..000000000 --- a/web/core/modules/big_pipe/src/Tests/BigPipeTest.php +++ /dev/null @@ -1,480 +0,0 @@ - refresh that big_pipe.module sets. It causes a redirect - // to a page that sets another cookie, which causes WebTestBase to lose the - // session cookie. To avoid this problem, tests should first call - // drupalGet() and then call checkForMetaRefresh() manually, and then reset - // $this->maximumMetaRefreshCount and $this->metaRefreshCount. - // @see doMetaRefresh() - $this->maximumMetaRefreshCount = 0; - } - - /** - * Performs a single refresh explicitly. - * - * This test disables the automatic refresh checking, each time it is - * desired that this runs, a test case must explicitly call this. - * - * @see setUp() - */ - protected function performMetaRefresh() { - $this->maximumMetaRefreshCount = 1; - $this->checkForMetaRefresh(); - $this->maximumMetaRefreshCount = 0; - $this->metaRefreshCount = 0; - } - - /** - * Tests BigPipe's no-JS detection. - * - * Covers: - * - big_pipe_page_attachments() - * - \Drupal\big_pipe\Controller\BigPipeController - */ - public function testNoJsDetection() { - $no_js_to_js_markup = ''; - - // 1. No session (anonymous). - $this->drupalGet(Url::fromRoute('')); - $this->assertSessionCookieExists(FALSE); - $this->assertBigPipeNoJsCookieExists(FALSE); - $this->assertNoRaw(''); - $this->assertNoRaw($no_js_to_js_markup); - $this->assertBigPipeNoJsMetaRefreshRedirect(); - $this->assertBigPipeNoJsCookieExists(TRUE); - $this->assertNoRaw(''); - $this->assertNoRaw($no_js_to_js_markup); - $this->assertBigPipeNoJsMetaRefreshRedirect(); - $this->assertBigPipeNoJsCookieExists(TRUE); - $this->assertNoRaw('