Neos\Flow\Tests\Unit\Persistence\Generic\SessionTest::getCleanStateOfPropertyReturnsNullIfObjectWasNotReconstituted PHP Method

getCleanStateOfPropertyReturnsNullIfObjectWasNotReconstituted() public method

    public function getCleanStateOfPropertyReturnsNullIfObjectWasNotReconstituted()
    {
        $entity = new \stdClass();
        $session = $this->getAccessibleMock(Persistence\Generic\Session::class, ['isReconstitutedEntity']);
        $session->expects($this->any())->method('isReconstitutedEntity')->with($entity)->will($this->returnValue(false));
        $state = $session->getCleanStateOfProperty($entity, 'bar');
        $this->assertNull($state);
    }