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

destroyRemovesAllSessionDataFromARemoteSession() public method

    public function destroyRemovesAllSessionDataFromARemoteSession()
    {
        $storageIdentifier = '6e988eaa-7010-4ee8-bfb8-96ea4b40ec16';
        $session = new Session('ZPjPj3A0Opd7JeDoe7rzUQYCoDMcxscb', $storageIdentifier, 1354293259, []);
        $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();
        $session->putData('session 1 key 1', 'some value');
        $session->putData('session 1 key 2', 'some other value');
        $session->destroy(__METHOD__);
        $this->inject($session, 'started', true);
        $this->assertFalse($session->hasKey('session 1 key 1'));
        $this->assertFalse($session->hasKey('session 1 key 2'));
    }
SessionTest