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

getDataReturnsDataPreviouslySetWithPutData() public method

    public function getDataReturnsDataPreviouslySetWithPutData()
    {
        $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();
        $this->assertFalse($session->hasKey('some key'));
        $session->putData('some key', 'some value');
        $this->assertEquals('some value', $session->getData('some key'));
        $this->assertTrue($session->hasKey('some key'));
    }
SessionTest