TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Extbase\Tests\Unit\Property\TypeConverter\IntegerConverterTest Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Tests\Unit\Property\TypeConverter\IntegerConverterTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 checkMetadata ()
 
 convertFromShouldCastTheStringToInteger ()
 
 convertFromDoesNotModifyIntegers ()
 
 convertFromReturnsNullIfEmptyStringSpecified ()
 
 convertFromReturnsAnErrorIfSpecifiedStringIsNotNumeric ()
 
 canConvertFromShouldReturnTrueForANumericStringSource ()
 
 canConvertFromShouldReturnTrueForAnIntegerSource ()
 
 canConvertFromShouldReturnTrueForAnEmptyValue ()
 
 canConvertFromShouldReturnTrueForANullValue ()
 
 getSourceChildPropertiesToBeConvertedShouldReturnEmptyArray ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, $methods=[], array $arguments=[], $mockClassName='', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=[], $mockClassName='', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 

Protected Attributes

 $converter
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Test case

Definition at line 27 of file IntegerConverterTest.php.

Member Function Documentation

◆ canConvertFromShouldReturnTrueForAnEmptyValue()

TYPO3\CMS\Extbase\Tests\Unit\Property\TypeConverter\IntegerConverterTest::canConvertFromShouldReturnTrueForAnEmptyValue ( )
Test:

Definition at line 101 of file IntegerConverterTest.php.

◆ canConvertFromShouldReturnTrueForAnIntegerSource()

TYPO3\CMS\Extbase\Tests\Unit\Property\TypeConverter\IntegerConverterTest::canConvertFromShouldReturnTrueForAnIntegerSource ( )
Test:

Definition at line 93 of file IntegerConverterTest.php.

◆ canConvertFromShouldReturnTrueForANullValue()

TYPO3\CMS\Extbase\Tests\Unit\Property\TypeConverter\IntegerConverterTest::canConvertFromShouldReturnTrueForANullValue ( )
Test:

Definition at line 109 of file IntegerConverterTest.php.

◆ canConvertFromShouldReturnTrueForANumericStringSource()

TYPO3\CMS\Extbase\Tests\Unit\Property\TypeConverter\IntegerConverterTest::canConvertFromShouldReturnTrueForANumericStringSource ( )
Test:

Definition at line 85 of file IntegerConverterTest.php.

◆ checkMetadata()

TYPO3\CMS\Extbase\Tests\Unit\Property\TypeConverter\IntegerConverterTest::checkMetadata ( )
Test:

Definition at line 42 of file IntegerConverterTest.php.

◆ convertFromDoesNotModifyIntegers()

TYPO3\CMS\Extbase\Tests\Unit\Property\TypeConverter\IntegerConverterTest::convertFromDoesNotModifyIntegers ( )
Test:

Definition at line 60 of file IntegerConverterTest.php.

◆ convertFromReturnsAnErrorIfSpecifiedStringIsNotNumeric()

TYPO3\CMS\Extbase\Tests\Unit\Property\TypeConverter\IntegerConverterTest::convertFromReturnsAnErrorIfSpecifiedStringIsNotNumeric ( )
Test:

Definition at line 77 of file IntegerConverterTest.php.

◆ convertFromReturnsNullIfEmptyStringSpecified()

TYPO3\CMS\Extbase\Tests\Unit\Property\TypeConverter\IntegerConverterTest::convertFromReturnsNullIfEmptyStringSpecified ( )
Test:

Definition at line 69 of file IntegerConverterTest.php.

◆ convertFromShouldCastTheStringToInteger()

TYPO3\CMS\Extbase\Tests\Unit\Property\TypeConverter\IntegerConverterTest::convertFromShouldCastTheStringToInteger ( )
Test:

Definition at line 52 of file IntegerConverterTest.php.

◆ getSourceChildPropertiesToBeConvertedShouldReturnEmptyArray()

TYPO3\CMS\Extbase\Tests\Unit\Property\TypeConverter\IntegerConverterTest::getSourceChildPropertiesToBeConvertedShouldReturnEmptyArray ( )
Test:

Definition at line 117 of file IntegerConverterTest.php.

◆ setUp()

TYPO3\CMS\Extbase\Tests\Unit\Property\TypeConverter\IntegerConverterTest::setUp ( )
protected

Definition at line 34 of file IntegerConverterTest.php.

Member Data Documentation

◆ $converter

TYPO3\CMS\Extbase\Tests\Unit\Property\TypeConverter\IntegerConverterTest::$converter
protected

Definition at line 32 of file IntegerConverterTest.php.