17 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
29 protected function setUp()
31 $this->converter = new \TYPO3\CMS\Extbase\Property\TypeConverter\BooleanConverter();
39 $this->assertEquals([
'boolean',
'string'], $this->converter->getSupportedSourceTypes(),
'Source types do not match');
40 $this->assertEquals(
'boolean', $this->converter->getSupportedTargetType(),
'Target type does not match');
41 $this->assertEquals(10, $this->converter->getPriority(),
'Priority does not match');
50 $this->assertEquals($source, $this->converter->convertFrom($source,
'boolean'));
59 $this->assertTrue($this->converter->convertFrom($source,
'boolean'));
68 $this->assertTrue($this->converter->convertFrom($source,
'boolean'));