/** * @covers ZfcUser\Authentication\Adapter\AbstractAdapter::getStorage * @covers ZfcUser\Authentication\Adapter\AbstractAdapter::setStorage */ public function testSetGetStorage() { $storage = new \Zend\Authentication\Storage\Session('ZfcUser'); $storage->write('zfcUser'); $this->adapter->setStorage($storage); $this->assertInstanceOf('Zend\\Authentication\\Storage\\Session', $this->adapter->getStorage()); $this->assertSame('zfcUser', $this->adapter->getStorage()->read()); }