Neos\Flow\Tests\Functional\Property\TypeConverter\PersistentObjectConverterTest::entityWithImmutablePropertyCanBeUpdatedIfImmutablePropertyIsGivenAndSameAsBefore PHP Method

entityWithImmutablePropertyCanBeUpdatedIfImmutablePropertyIsGivenAndSameAsBefore() public method

    public function entityWithImmutablePropertyCanBeUpdatedIfImmutablePropertyIsGivenAndSameAsBefore()
    {
        $result = $this->propertyMapper->convert($this->sourceProperties, Fixtures\TestEntityWithImmutableProperty::class);
        $identifier = $this->persistenceManager->getIdentifierByObject($result);
        $this->persistenceManager->add($result);
        $this->persistenceManager->persistAll();
        $this->persistenceManager->clearState();
        $update = ['__identity' => $identifier, 'age' => '25', 'name' => 'Christian M'];
        $result = $this->propertyMapper->convert($update, Fixtures\TestEntityWithImmutableProperty::class);
        $this->assertInstanceOf(Fixtures\TestEntityWithImmutableProperty::class, $result);
        $this->assertEquals('Christian M', $result->getName());
    }