TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
UnitTestCase Class Reference
Inheritance diagram for UnitTestCase:
BaseTestCase CsvUtilityTest RemoveXSSTest FullyRenderedButtonTest InputButtonTest LinkButtonTest SplitButtonTest MenuItemTest MenuTest ConditionMatcherTest EditDocumentControllerTest FileControllerTest FormInlineAjaxControllerTest LoginControllerTest PageLayoutControllerTest SelectTreeControllerTest SuggestWizardControllerTest FormDataCompilerTest FlexFormSegmentTest InlineParentRecordTest OnTheFlyTest TcaDatabaseRecordTest TcaInputPlaceholderRecordTest DatabaseEditRowTest DatabaseEffectivePidTest DatabaseLanguageRowsTest DatabasePageLanguageOverlayRowsTest DatabaseParentPageRowTest DatabaseRecordOverrideValuesTest DatabaseRecordTypeValueTest DatabaseRowDateTimeFieldsTest DatabaseRowDefaultValuesTest DatabaseRowInitializeNewTest DatabaseSystemLanguageRowsTest DatabaseUniqueUidNewRowTest DatabaseUserPermissionCheckTest EvaluateDisplayConditionsTest FormEngineUtilityTest InitializeProcessedTcaTest PageTsConfigMergedTest ParentPageTcaTest TcaCheckboxItemsTest TcaColumnsOverridesTest TcaColumnsProcessCommonTest TcaColumnsProcessFieldLabelsTest TcaColumnsProcessPlaceholdersTest TcaColumnsProcessRecordTitleTest TcaColumnsProcessShowitemTest TcaColumnsRemoveUnusedTest TcaFlexPrepareTest TcaFlexProcessTest TcaGroupTest TcaInlineConfigurationTest TcaInlineExpandCollapseStateTest TcaInlineIsOnSymmetricSideTest TcaInlineTest TcaInputPlaceholdersTest TcaRadioItemsTest TcaRecordTitleTest TcaSelectItemsTest TcaSelectTreeItemsTest TcaTypesShowitemTest UserTsConfigTest GroupElementTest InlineStackProcessorTest NodeFactoryTest NoneElementTest SuggestWizardTest ModuleLoaderTest DataProviderTest SortedTreeNodeCollectionTest TreeNodeCollectionTest TreeNodeTest BackendUtilityTest BackendLayoutCollectionTest BackendLayoutTest DataProviderCollectionTest BackendLayoutViewTest ConstraintTest LogEntryTest HistoryEntryRepositoryTest LogEntryRepositoryTest WorkspaceRepositoryTest BackendUserTest DemandTest BackendUserRepositoryTest BackendUserSessionRepositoryTest ModuleDataStorageServiceTest IntegrityTest AbstractUserAuthenticationTest BackendUserAuthenticationTest AbstractBackendTest ApcBackendTest ApcuBackendTest FileBackendTest MemcachedBackendTest PdoBackendTest RedisBackendTest TransientMemoryBackendTest Typo3DatabaseBackendTest WincacheBackendTest CacheFactoryTest CacheManagerTest AbstractFrontendTest PhpFrontendTest StringFrontendTest VariableFrontendTest CategoryRegistryTest CategoryCollectionTest CharsetConverterTest ConfigurationManagerTest FlexFormToolsTest AbstractConditionMatcherTest ApplicationContextTest ClassLoadingInformationGeneratorTest SystemEnvironmentBuilderTest RandomTest ConnectionMigratorTest ConnectionPoolTest ConnectionTest DatabaseConnectionTest EnumTypeTest PreparedStatementTest BulkInsertTest ExpressionBuilderTest QueryBuilderTest QueryHelperTest AbstractRestrictionTestCase RelationHandlerTest AbstractDataTypeBaseTestCase ColumnDefinitionAttributesTest ColumnDefinitionItemTest CreateTableFragmentTest ForeignKeyDefinitionTest IndexDefinitionTest ReferenceDefinitionTest TableBuilderTest TableOptionsTest SchemaColumnDefinitionListenerTest SetTypeTest SqlReaderTest DataHandlerTest JavaScriptEncoderTest DebugExceptionHandlerTest ProductionExceptionHandlerTest FileStreamWrapperTest AbstractFormProtectionTest BackendFormProtectionTest FormProtectionFactoryTest InstallToolFormProtectionTest HtmlParserTest RteHtmlParserTest MessageTest RequestTest ResponseTest ServerRequestFactoryTest ServerRequestTest StreamTest UploadedFileTest UriTest DimensionTest GraphicalFunctionsTest IconFactoryTest BitmapIconProviderTest FontawesomeIconProviderTest SvgIconProviderTest IconRegistryTest IconTest EmailLinkHandlerTest FileLinkHandlerTest FolderLinkHandlerTest LegacyLinkNotationConverterTest LinkServiceTest PageLinkHandlerTest UrlLinkHandlerTest LocalesTest LocalizationFactoryTest LocallangXmlParserTest XliffParserTest FileLockStrategyTest LockFactoryTest SemaphoreLockStrategyTest SimpleLockStrategyTest LoggerTest LogLevelTest LogManagerTest LogRecordTest AbstractMemoryTest AbstractProcessorTest IntrospectionProcessorTest MemoryPeakUsageProcessorTest MemoryUsageProcessorTest WebProcessorTest AbstractWriterTest DatabaseWriterTest FileWriterTest MailerTest MailMessageTest FlashMessageServiceTest TcaMigrationTest DependencyResolverTest PackageManagerTest PackageTest PageRendererTest RegistryTest AbstractFileTest BaseTestCase DriverRegistryTest FileReferenceTest FileTest FileNameFilterTest FolderTest ExtractorRegistryTest IndexerTest ProcessedFileTest LocalPreviewHelperTest AudioTagRendererTest RendererRegistryTest VideoTagRendererTest VimeoRendererTest YouTubeRendererTest AbstractRepositoryTest ResourceFactoryTest PlainTextExtractorTest TextExtractorRegistryTest FileExtensionFilterTest DependencyOrderingServiceTest MarkerBasedTemplateServiceTest DatabaseTreeDataProviderTest TreeDataProviderFactoryTest EnumerationTest FileInfoTest ImageInfoTest TypoScriptParserTest TemplateServiceTest ArrayUtilityTest ClassNamingUtilityTest ClientUtilityTest CommandUtilityTest DebugUtilityTest ExtensionManagementUtilityTest ExtendedFileUtilityTest GeneralUtilityTest HttpUtilityTest MailUtilityTest MathUtilityTest PathUtilityTest ResourceUtilityTest RootlineUtilityTest StringUtilityTest VersionNumberUtilityTest DocumentFormatTest DocumentTest DocumentTranslationTest AbstractConfigurationManagerTest BackendConfigurationManagerTest FrontendConfigurationManagerTest BootstrapTest BackendUserGroupTest BackendUserTest CategoryTest FileMountTest FrontendUserGroupTest FrontendUserTest BackendUserGroupRepositoryTest BackendUserRepositoryTest CategoryRepositoryTest FileMountRepositoryTest AbstractEntityTest ErrorTest MessageTest ResultTest CheckFlexFormValueTest CommandManagerTest CommandTest RequestBuilderTest RequestTest AbstractControllerTest ActionControllerTest ArgumentsTest ArgumentTest CommandControllerTest MvcPropertyMappingConfigurationServiceTest RequestTest ResponseTest JsonViewTest CacheHashEnforcerTest RequestBuilderTest UriBuilderTest ClassInfoFactoryTest ContainerTest BackendTest DataMapFactoryTest DataMapperTest PersistenceManagerTest QueryFactoryTest QueryResultTest QueryTest SessionTest Typo3DbBackendTest Typo3DbQueryParserTest Typo3QuerySettingsTest ObjectStorageTest RepositoryTest PropertyMapperTest PropertyMappingConfigurationBuilderTest PropertyMappingConfigurationTest ArrayConverterTest BooleanConverterTest DateTimeConverterTest FloatConverterTest IntegerConverterTest ObjectConverterTest PersistentObjectConverterTest StringConverterTest ClassSchemaTest DocCommentParserTest ObjectAccessTest ReflectionServiceTest FieldProviderTest TaskTest HashServiceTest CacheServiceTest ExtensionServiceTest FlexFormServiceTest ImageScriptServiceTest TypoScriptServiceTest DispatcherTest ArrayUtilityTest DebuggerUtilityTest ExtensionUtilityTest LocalizationUtilityTest AbstractCompositeValidatorTest AbstractValidatorTest AbstractValidatorTestcase AlphanumericValidatorTest CollectionValidatorTest ConjunctionValidatorTest DisjunctionValidatorTest EmailAddressValidatorTest NumberRangeValidatorTest NumberValidatorTest RegularExpressionValidatorTest StringLengthValidatorTest ValidatorResolverTest DownloadControllerTest UpdateFromTerControllerTest UploadExtensionFileControllerTest DownloadQueueTest ExtensionTest ConfigurationItemRepositoryTest RepositoryRepositoryTest ExtensionStatusTest ExtensionManagementServiceTest UpdateExtensionListTaskTest ConfigurationUtilityTest DependencyUtilityTest EmConfUtilityTest ExtensionModelUtilityTest FileHandlingUtilityTest InstallUtilityTest ListUtilityTest FrontendLoginControllerTest FluidTemplateCacheTest XmlnsNamespaceTemplatePreProcessorTest LegacyNamespaceExpressionNodeTest RenderingContextTest CmsVariableProviderTest AbstractViewHelperTest ArgumentDefinitionTest ViewHelperResolverTest AbstractWidgetControllerTest AbstractWidgetViewHelperTest AjaxWidgetContextHolderTest WidgetContextTest WidgetRequestBuilderTest WidgetRequestHandlerTest WidgetRequestTest AbstractTemplateViewTest StandaloneViewTest TemplatePathsTest ImageViewHelperTest ViewHelperBaseTestcase PaginateControllerTest AbstractBackendControllerTest FormEditorControllerTest FormFrontendControllerTest FormManagerControllerTest ConfigurationServiceTest DataStructureIdentifierHookTest InheritancesResolverServiceTest ProcessingRuleTest TypoScriptServiceTest YamlSourceTest FormPersistenceManagerTest CountValidatorTest EmptyValidatorTest MimeTypeValidatorTest DatePickerViewHelperTest ConditionMatcherTest CaseContentObjectTest ContentDataProcessorTest ContentObjectRendererTest FilesContentObjectTest FluidTemplateContentObjectTest AbstractMenuContentObjectTest MenuContentObjectFactoryTest TypoScriptFrontendControllerTest CacheHashCalculatorTest PageGeneratorTest PageRepositoryTest AbstractPluginTest GalleryProcessorTest TypoLinkCodecServiceTest AdminPanelViewTest IndexerTest CoreUpdateServiceTest CoreVersionServiceTest SilentConfigurationUpgradeServiceTest ExtensionCompatibilityTesterTest DefaultFactoryTest LinkNodeTest RootNodeTest StructureFacadeTest FolderStructureTestCase EnableFileServiceTest SqlSchemaMigrationServiceTest StatusUtilityTest DocumentationFileTest JsonViewTest ExtensionTest LanguageTest ArrayBrowserTest AbstractDatabaseRecordListTest CleanerFieldProviderTest CleanerTaskTest Typo3StatusTest CommandLineBackendTest PhpBackendTest KeypairTest EvaluatorTest BlowfishSaltTest Md5SaltTest Pbkdf2SaltTest PhpassSaltTest SaltFactoryTest SaltedPasswordsUtilityTest CronCommandTest NormalizeCommandTest CachingFrameworkGarbageCollectionTest SetupModuleControllerTest AuthenticationServiceTest RemoteServerTest ServicesListReportTest InputHiddenElementTest InputTextElementTest InlineOverrrideChildTcaTest

Protected Member Functions

 tearDown ()
 
- Protected Member Functions inherited from 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,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 

Protected Attributes

 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Base test case for unit tests.

This class currently only inherits the base test case. However, it is recommended to extend this class for unit test cases instead of the base test case because if, at some point, specific behavior needs to be implemented for unit tests, your test cases will profit from it automatically.

Definition at line 29 of file UnitTestCase.php.

Member Function Documentation

tearDown ( )
protected

Unset all additional properties of test classes to help PHP garbage collection. This reduces memory footprint with lots of tests.

If overwriting tearDown() in test classes, please call parent::tearDown() at the end. Unsetting of own properties is not needed this way.

Exceptions
RuntimeException
Returns
void

Definition at line 59 of file UnitTestCase.php.

References GeneralUtility\fixWindowsFilePath(), PathUtility\getCanonicalPath(), GeneralUtility\rmdir(), and GeneralUtility\validPathStr().

Member Data Documentation

$backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
protected

Definition at line 36 of file UnitTestCase.php.

$testFilesToDelete = []
protected

Definition at line 45 of file UnitTestCase.php.