48 $input =
'<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?> 52 <language index="lDEF"> 53 <field index="settings.foo"> 54 <value index="vDEF">Foo-Value</value> 56 <field index="settings.bar"> 59 <itemType index="_arrayContainer"> 62 <value index="vDEF">Baz1-Value</value> 65 <value index="vDEF">Bum1-Value</value> 69 <itemType index="_TOGGLE">0</itemType> 72 <itemType index="_arrayContainer"> 75 <value index="vDEF">Baz2-Value</value> 78 <value index="vDEF">Bum2-Value</value> 82 <itemType index="_TOGGLE">0</itemType> 96 'baz' =>
'Baz1-Value',
100 'baz' =>
'Baz2-Value',
101 'bum' =>
'Bum2-Value' 109 $cacheManagerMock = $this->getMock(
'TYPO3\\CMS\\Core\\Cache\\CacheManager', array(), array(),
'', FALSE);
110 $cacheMock = $this->getMock(
'TYPO3\\CMS\\Core\\Cache\\Frontend\\FrontendInterface', array(), array(),
'', FALSE);
111 $cacheManagerMock->expects($this->any())->method(
'getCache')->will($this->returnValue($cacheMock));
114 $flexFormService = $this->getMock(
'TYPO3\\CMS\\Extbase\\Service\\FlexFormService', array(
'dummy'), array(),
'', FALSE);
115 $convertedFlexFormArray = $flexFormService->convertFlexFormContentToArray($input);
116 $this->assertSame($expected, $convertedFlexFormArray);
static getSingletonInstances()
static setSingletonInstance($className, \TYPO3\CMS\Core\SingletonInterface $instance)
static resetSingletonInstances(array $newSingletonInstances)