TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
InstallUtilityTest Class Reference
Inheritance diagram for InstallUtilityTest:
UnitTestCase BaseTestCase

Public Member Functions

 getExtensionData ()
 
 installCallsProcessRuntimeDatabaseUpdates ()
 
 installCallsLoadExtension ()
 
 installCallsFlushCachesIfClearCacheOnLoadIsSet ()
 
 installCallsFlushCachesIfClearCacheOnLoadCamelCasedIsSet ()
 
 installationOfAnExtensionWillCallEnsureThatDirectoriesExist ()
 
 installCallsReloadCaches ()
 
 installCallsSaveDefaultConfigurationWithExtensionKey ()
 
 uninstallCallsUnloadExtension ()
 
 processDatabaseUpdatesCallsUpdateDbWithExtTablesSql ()
 
 processDatabaseUpdatesCallsImportStaticSqlFile ()
 
 processDatabaseUpdatesCallsImportFileDataProvider ()
 
 processDatabaseUpdatesCallsImportFile ($fileName)
 
 importT3DFileDoesNotImportFileIfAlreadyImportedDataProvider ()
 
 importT3DFileDoesNotImportFileIfAlreadyImported ($fileName, $registryNameReturnsFalse, $registryNameReturnsTrue)
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 
 createFakeExtension ()
 
- Protected Member Functions inherited from UnitTestCase
 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

 $extensionKey
 
 $extensionData = []
 
 $fakedExtensions = []
 
 $installMock
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Test case

Definition at line 20 of file InstallUtilityTest.php.

Member Function Documentation

createFakeExtension ( )
protected
getExtensionData ( )
Returns
array

Definition at line 87 of file InstallUtilityTest.php.

References InstallUtilityTest\$extensionData.

importT3DFileDoesNotImportFileIfAlreadyImported (   $fileName,
  $registryNameReturnsFalse,
  $registryNameReturnsTrue 
)
Parameters
string$fileName
string$registryNameReturnsFalse
string$registryNameReturnsTrue
Test:
importT3DFileDoesNotImportFileIfAlreadyImportedDataProvider

Definition at line 337 of file InstallUtilityTest.php.

References InstallUtilityTest\$installMock, InstallUtilityTest\createFakeExtension(), BaseTestCase\getAccessibleMock(), and GeneralUtility\mkdir().

importT3DFileDoesNotImportFileIfAlreadyImportedDataProvider ( )
Returns
array

Definition at line 303 of file InstallUtilityTest.php.

installationOfAnExtensionWillCallEnsureThatDirectoriesExist ( )
Test:

Definition at line 175 of file InstallUtilityTest.php.

installCallsFlushCachesIfClearCacheOnLoadCamelCasedIsSet ( )
Test:

Definition at line 163 of file InstallUtilityTest.php.

installCallsFlushCachesIfClearCacheOnLoadIsSet ( )
Test:

Definition at line 151 of file InstallUtilityTest.php.

installCallsLoadExtension ( )
Test:

Definition at line 139 of file InstallUtilityTest.php.

installCallsProcessRuntimeDatabaseUpdates ( )
Test:

Definition at line 124 of file InstallUtilityTest.php.

installCallsReloadCaches ( )
Test:

Definition at line 187 of file InstallUtilityTest.php.

installCallsSaveDefaultConfigurationWithExtensionKey ( )
Test:

Definition at line 199 of file InstallUtilityTest.php.

processDatabaseUpdatesCallsImportFile (   $fileName)
Parameters
string$fileName
Test:
processDatabaseUpdatesCallsImportFileDataProvider

Definition at line 281 of file InstallUtilityTest.php.

References InstallUtilityTest\$installMock, InstallUtilityTest\createFakeExtension(), BaseTestCase\getAccessibleMock(), and GeneralUtility\mkdir().

processDatabaseUpdatesCallsImportFileDataProvider ( )
Returns
array

Definition at line 264 of file InstallUtilityTest.php.

processDatabaseUpdatesCallsImportStaticSqlFile ( )
processDatabaseUpdatesCallsUpdateDbWithExtTablesSql ( )
setUp ( )
protected
Returns
void

Definition at line 45 of file InstallUtilityTest.php.

References InstallUtilityTest\$extensionKey, and BaseTestCase\getAccessibleMock().

array List of created fake extensions to be deleted in tearDown ( )
protected
Returns
void

Definition at line 95 of file InstallUtilityTest.php.

uninstallCallsUnloadExtension ( )
Test:

Definition at line 211 of file InstallUtilityTest.php.

Member Data Documentation

$extensionData = []
protected

Definition at line 30 of file InstallUtilityTest.php.

Referenced by InstallUtilityTest\getExtensionData().

$extensionKey
protected

Definition at line 25 of file InstallUtilityTest.php.

Referenced by InstallUtilityTest\setUp().

$fakedExtensions = []
protected

Definition at line 35 of file InstallUtilityTest.php.