TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Tests\Unit\Resource\Service\FrontendContentAdapterServiceTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Resource\Service\FrontendContentAdapterServiceTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 setUp ()
 
 emptyRelationResetsLegacyFields ()
 
 imageFieldIsFilledWithPathOfImage ()
 
 conteRowsOfDifferentTypesDataProvider ()
 
 migrationOfLegacyFieldsIsOnlyDoneWhenRelationFieldIsVisibleInType ($dbRow, $expectedCaption, $fileProperties)
 
 migrationOfLegacyFieldsSanitizesLFOnMultiLineInputs ()
 
 registerAdditionalTypeForMigrationAddsTypeToArray ()
 
 registerAdditionalTypeForMigrationThrowsExceptionIfNoConfigurationAvailable ()
 
 registerAdditionalTypeForMigrationThrowsExceptionIfNoTypeConfigurationAvailable ()
 
 registerFieldForMigrationAddsCorrectConfiguration ($expectedResult, $table, $field, $migrationFields, $oldFieldName, $typeField, $types)
 
 registerFieldForMigrationAddsCorrectConfigurationDataProvider ()
 
 registerFieldForMigrationThrowsExceptionForInvalidMigrationField ()
 

Protected Member Functions

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

Protected Attributes

 $singletonInstances = array()
 
 $pageRepositoryMock
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = array('TYPO3_LOADED_EXT')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Tests for the Frontend Content Adapter

Definition at line 19 of file FrontendContentAdapterServiceTest.php.

Member Function Documentation

◆ conteRowsOfDifferentTypesDataProvider()

TYPO3\CMS\Core\Tests\Unit\Resource\Service\FrontendContentAdapterServiceTest::conteRowsOfDifferentTypesDataProvider ( )

Definition at line 79 of file FrontendContentAdapterServiceTest.php.

◆ emptyRelationResetsLegacyFields()

TYPO3\CMS\Core\Tests\Unit\Resource\Service\FrontendContentAdapterServiceTest::emptyRelationResetsLegacyFields ( )
Test:

Definition at line 43 of file FrontendContentAdapterServiceTest.php.

◆ getAccessibleFrontendContentAdapterServiceWithEmptyConfiguration()

TYPO3\CMS\Core\Tests\Unit\Resource\Service\FrontendContentAdapterServiceTest::getAccessibleFrontendContentAdapterServiceWithEmptyConfiguration ( )
protected

Creates an accessible mock of the FrontendContentAdapterService class and sets the migrateFields property to an empty array.

Returns
|

Definition at line 358 of file FrontendContentAdapterServiceTest.php.

◆ imageFieldIsFilledWithPathOfImage()

TYPO3\CMS\Core\Tests\Unit\Resource\Service\FrontendContentAdapterServiceTest::imageFieldIsFilledWithPathOfImage ( )
Test:

Definition at line 59 of file FrontendContentAdapterServiceTest.php.

◆ migrationOfLegacyFieldsIsOnlyDoneWhenRelationFieldIsVisibleInType()

TYPO3\CMS\Core\Tests\Unit\Resource\Service\FrontendContentAdapterServiceTest::migrationOfLegacyFieldsIsOnlyDoneWhenRelationFieldIsVisibleInType (   $dbRow,
  $expectedCaption,
  $fileProperties 
)
Test:
conteRowsOfDifferentTypesDataProvider

Definition at line 125 of file FrontendContentAdapterServiceTest.php.

◆ migrationOfLegacyFieldsSanitizesLFOnMultiLineInputs()

TYPO3\CMS\Core\Tests\Unit\Resource\Service\FrontendContentAdapterServiceTest::migrationOfLegacyFieldsSanitizesLFOnMultiLineInputs ( )
Test:

Definition at line 147 of file FrontendContentAdapterServiceTest.php.

◆ registerAdditionalTypeForMigrationAddsTypeToArray()

TYPO3\CMS\Core\Tests\Unit\Resource\Service\FrontendContentAdapterServiceTest::registerAdditionalTypeForMigrationAddsTypeToArray ( )
Test:

Definition at line 228 of file FrontendContentAdapterServiceTest.php.

◆ registerAdditionalTypeForMigrationThrowsExceptionIfNoConfigurationAvailable()

TYPO3\CMS\Core\Tests\Unit\Resource\Service\FrontendContentAdapterServiceTest::registerAdditionalTypeForMigrationThrowsExceptionIfNoConfigurationAvailable ( )
Test:

Definition at line 264 of file FrontendContentAdapterServiceTest.php.

◆ registerAdditionalTypeForMigrationThrowsExceptionIfNoTypeConfigurationAvailable()

TYPO3\CMS\Core\Tests\Unit\Resource\Service\FrontendContentAdapterServiceTest::registerAdditionalTypeForMigrationThrowsExceptionIfNoTypeConfigurationAvailable ( )
Test:

Definition at line 273 of file FrontendContentAdapterServiceTest.php.

◆ registerFieldForMigrationAddsCorrectConfiguration()

TYPO3\CMS\Core\Tests\Unit\Resource\Service\FrontendContentAdapterServiceTest::registerFieldForMigrationAddsCorrectConfiguration (   $expectedResult,
  $table,
  $field,
  $migrationFields,
  $oldFieldName,
  $typeField,
  $types 
)
Test:
registerFieldForMigrationAddsCorrectConfigurationDataProvider

Definition at line 292 of file FrontendContentAdapterServiceTest.php.

◆ registerFieldForMigrationAddsCorrectConfigurationDataProvider()

TYPO3\CMS\Core\Tests\Unit\Resource\Service\FrontendContentAdapterServiceTest::registerFieldForMigrationAddsCorrectConfigurationDataProvider ( )

Data provider for registerFieldForMigrationAddsCorrectConfiguration

Returns
array

Definition at line 304 of file FrontendContentAdapterServiceTest.php.

◆ registerFieldForMigrationThrowsExceptionForInvalidMigrationField()

TYPO3\CMS\Core\Tests\Unit\Resource\Service\FrontendContentAdapterServiceTest::registerFieldForMigrationThrowsExceptionForInvalidMigrationField ( )
Test:

Definition at line 347 of file FrontendContentAdapterServiceTest.php.

◆ setUp()

TYPO3\CMS\Core\Tests\Unit\Resource\Service\FrontendContentAdapterServiceTest::setUp ( )

Saving the singletons

Definition at line 34 of file FrontendContentAdapterServiceTest.php.

Member Data Documentation

◆ $pageRepositoryMock

TYPO3\CMS\Core\Tests\Unit\Resource\Service\FrontendContentAdapterServiceTest::$pageRepositoryMock
protected

Definition at line 29 of file FrontendContentAdapterServiceTest.php.

◆ $singletonInstances

TYPO3\CMS\Core\Tests\Unit\Resource\Service\FrontendContentAdapterServiceTest::$singletonInstances = array()
protected

Definition at line 24 of file FrontendContentAdapterServiceTest.php.