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

closeAndShutdownObjectDoNotCloseARemoteSession() public method

    public function closeAndShutdownObjectDoNotCloseARemoteSession()
    {
        $storageIdentifier = '6e988eaa-7010-4ee8-bfb8-96ea4b40ec16';
        $session = new Session('ZPjPj3A0Opd7JeDoe7rzUQYCoDMcxscb', $storageIdentifier, 1354293259, []);
        $this->inject($session, 'bootstrap', $this->mockBootstrap);
        $this->inject($session, 'objectManager', $this->mockObjectManager);
        $this->inject($session, 'settings', $this->settings);
        $this->inject($session, 'metaDataCache', $this->createCache('Meta'));
        $this->inject($session, 'storageCache', $this->createCache('Storage'));
        $session->initializeObject();
        $session->start();
        $this->assertTrue($session->isStarted());
        $session->close();
        $this->assertTrue($session->isStarted());
    }
SessionTest