Use $wgSecureCookie to decide whether to actually mark secure cookies as 'secure'
[lhc/web/wiklou.git] / tests / phpunit / includes / session / CookieSessionProviderTest.php
index ccf45f6..702f556 100644 (file)
@@ -431,7 +431,7 @@ class CookieSessionProviderTest extends MediaWikiTestCase {
                        'cookieOptions' => array( 'prefix' => 'x' ),
                ) );
                $config = $this->getConfig();
-               $config->set( 'CookieSecure', false );
+               $config->set( 'CookieSecure', $secure );
                $provider->setLogger( new \TestLogger() );
                $provider->setConfig( $config );
                $provider->setManager( SessionManager::singleton() );