Neos\Flow\Tests\Functional\Property\PropertyMapperTest::mappingPersistentEntityAllowsToSetValueToNull PHP Method

mappingPersistentEntityAllowsToSetValueToNull() public method

    public function mappingPersistentEntityAllowsToSetValueToNull()
    {
        $entityIdentity = $this->createTestEntity();
        $source = ['__identity' => $entityIdentity, 'averageNumberOfKids' => ''];
        $result = $this->propertyMapper->convert($source, Fixtures\TestEntity::class);
        $this->assertSame('Egon Olsen', $result->getName());
        $this->assertSame(42, $result->getAge());
        $this->assertSame(null, $result->getAverageNumberOfKids());
    }