17 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
29 protected function setUp()
31 $this->converter = new \TYPO3\CMS\Extbase\Property\TypeConverter\StringConverter();
39 $this->assertEquals([
'string',
'integer'], $this->converter->getSupportedSourceTypes(),
'Source types do not match');
40 $this->assertEquals(
'string', $this->converter->getSupportedTargetType(),
'Target type does not match');
41 $this->assertEquals(10, $this->converter->getPriority(),
'Priority does not match');
49 $this->assertEquals(
'myString', $this->converter->convertFrom(
'myString',
'string'));
57 $this->assertTrue($this->converter->canConvertFrom(
'myString',
'string'));
65 $this->assertEquals([], $this->converter->getSourceChildPropertiesToBeConverted(
'myString'));