Neos\Flow\Tests\Unit\Session\SessionTest::renewIdSetsANewSessionIdentifier PHP Method

renewIdSetsANewSessionIdentifier() public method

    public function renewIdSetsANewSessionIdentifier()
    {
        $session = new Session();
        $this->inject($session, 'bootstrap', $this->mockBootstrap);
        $this->inject($session, 'settings', $this->settings);
        $this->inject($session, 'metaDataCache', $this->createCache('Meta'));
        $this->inject($session, 'storageCache', $this->createCache('Storage'));
        $session->initializeObject();
        $session->start();
        $oldSessionId = $session->getId();
        $session->renewId();
        $newSessionId = $session->getId();
        $this->assertNotEquals($oldSessionId, $newSessionId);
    }
SessionTest