Skip to content
Snippets Groups Projects
Verified Commit 8f0cd688 authored by Drew Webber's avatar Drew Webber
Browse files

Issue #3446569 by poker10, joseph.olstad: [D7 PHP 8.3] Fix...

Issue #3446569 by poker10, joseph.olstad: [D7 PHP 8.3] Fix SessionHttpsTestCase->testEmptySessionId() failure
parent 72bcab83
Branches
Tags
No related merge requests found
Pipeline #357646 failed
Pipeline: drupal

#357656

    Pipeline: drupal

    #357655

      Pipeline: drupal

      #357654

        +7
        ......@@ -779,8 +779,10 @@ class SessionHttpsTestCase extends DrupalWebTestCase {
        $form[0]['action'] = $this->httpsUrl('user');
        $this->drupalPost(NULL, $edit, t('Log in'));
        // Make the secure session cookie blank.
        curl_setopt($this->curlHandle, CURLOPT_COOKIE, "$secure_session_name=");
        // Make the secure session cookie blank. Closing the curl handler will stop
        // the previous session ID from persisting.
        $this->curlClose();
        $this->additionalCurlOptions[CURLOPT_COOKIE] = rawurlencode($secure_session_name) . '=;';
        $this->drupalGet($this->httpsUrl('user'));
        $this->assertNoText($admin_user->name, 'User is not logged in as admin');
        $this->assertNoText($standard_user->name, "The user's own name is not displayed because the invalid session cookie has logged them out.");
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment