Neos\Flow\Tests\Unit\Persistence\Generic\DataMapperTest::mapArrayMapsNestedArray PHP Метод

mapArrayMapsNestedArray() публичный Метод

    public function mapArrayMapsNestedArray()
    {
        $arrayValues = ['one' => ['type' => 'array', 'index' => 'foo', 'value' => [['type' => 'string', 'index' => 'bar', 'value' => 'baz'], ['type' => 'integer', 'index' => 'quux', 'value' => null]]]];
        $expected = ['foo' => ['bar' => 'baz', 'quux' => null]];
        $dataMapper = $this->getAccessibleMock(Persistence\Generic\DataMapper::class, ['dummy']);
        $this->assertEquals($expected, $dataMapper->_call('mapArray', $arrayValues));
    }