35 $this->converter = new \TYPO3\CMS\Extbase\Property\TypeConverter\BooleanConverter();
42 $this->assertEquals(array(
'boolean',
'string'), $this->converter->getSupportedSourceTypes(),
'Source types do not match');
43 $this->assertEquals(
'boolean', $this->converter->getSupportedTargetType(),
'Target type does not match');
44 $this->assertEquals(1, $this->converter->getPriority(),
'Priority does not match');
52 $this->assertEquals($source, $this->converter->convertFrom($source,
'boolean'));
60 $this->assertSame(TRUE, $this->converter->convertFrom($source,
'boolean'));
68 $this->assertSame(TRUE, $this->converter->convertFrom($source,
'boolean'));
convertFromCastsSourceStringToBoolean()
convertFromDoesNotModifyTheBooleanSource()
convertFromCastsNumericSourceStringToBoolean()