public function testBasics()
 {
     $provider = new CookieSessionProvider(['priority' => 10]);
     $this->assertTrue($provider->persistsSessionId());
     $this->assertTrue($provider->canChangeUser());
     $msg = $provider->whyNoSession();
     $this->assertInstanceOf('Message', $msg);
     $this->assertSame('sessionprovider-nocookies', $msg->getKey());
 }
 public function testBasics()
 {
     $provider = new CookieSessionProvider(['priority' => 10]);
     $this->assertTrue($provider->persistsSessionId());
     $this->assertTrue($provider->canChangeUser());
     $extendedCookies = ['UserID', 'UserName', 'Token'];
     $this->assertEquals($extendedCookies, \TestingAccessWrapper::newFromObject($provider)->getExtendedLoginCookies(), 'List of extended cookies (subclasses can add values, but we\'re calling the core one here)');
     $msg = $provider->whyNoSession();
     $this->assertInstanceOf('Message', $msg);
     $this->assertSame('sessionprovider-nocookies', $msg->getKey());
 }