TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest Class Reference
Inheritance diagram for TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

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

Protected Member Functions

 createFakeExtension ()
 
- 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

 $extensionKey
 
 $extensionData = array()
 
 $fakedExtensions = array()
 
 $installMock
 
- 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! Test case

Definition at line 20 of file InstallUtilityTest.php.

Member Function Documentation

◆ createFakeExtension()

◆ getExtensionData()

TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest::getExtensionData ( )

◆ importT3DFileDoesNotImportFileIfAlreadyImported()

TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest::importT3DFileDoesNotImportFileIfAlreadyImported (   $fileName,
  $registryNameReturnsFalse,
  $registryNameReturnsTrue 
)
Parameters
string$fileName
string$registryNameReturnsFalse
string$registryNameReturnsTrue
Test:
importT3DFileDoesNotImportFileIfAlreadyImportedDataProvider

Definition at line 314 of file InstallUtilityTest.php.

References TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest\$installMock, TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest\createFakeExtension(), TYPO3\CMS\Core\Tests\BaseTestCase\getAccessibleMock(), and TYPO3\CMS\Core\Utility\GeneralUtility\mkdir().

◆ importT3DFileDoesNotImportFileIfAlreadyImportedDataProvider()

TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest::importT3DFileDoesNotImportFileIfAlreadyImportedDataProvider ( )
Returns
array

Definition at line 281 of file InstallUtilityTest.php.

◆ installationOfAnExtensionWillCallEnsureThatDirectoriesExist()

TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest::installationOfAnExtensionWillCallEnsureThatDirectoriesExist ( )
Test:

Definition at line 161 of file InstallUtilityTest.php.

◆ installCallsFlushCachesIfClearCacheOnLoadCamelCasedIsSet()

TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest::installCallsFlushCachesIfClearCacheOnLoadCamelCasedIsSet ( )
Test:

Definition at line 150 of file InstallUtilityTest.php.

◆ installCallsFlushCachesIfClearCacheOnLoadIsSet()

TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest::installCallsFlushCachesIfClearCacheOnLoadIsSet ( )
Test:

Definition at line 139 of file InstallUtilityTest.php.

◆ installCallsLoadExtension()

TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest::installCallsLoadExtension ( )
Test:

Definition at line 128 of file InstallUtilityTest.php.

◆ installCallsProcessRuntimeDatabaseUpdates()

TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest::installCallsProcessRuntimeDatabaseUpdates ( )
Test:

Definition at line 114 of file InstallUtilityTest.php.

◆ installCallsReloadCaches()

TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest::installCallsReloadCaches ( )
Test:

Definition at line 172 of file InstallUtilityTest.php.

◆ installCallsSaveDefaultConfigurationWithExtensionKey()

TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest::installCallsSaveDefaultConfigurationWithExtensionKey ( )
Test:

Definition at line 183 of file InstallUtilityTest.php.

◆ processDatabaseUpdatesCallsImportFile()

TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest::processDatabaseUpdatesCallsImportFile (   $fileName)

◆ processDatabaseUpdatesCallsImportFileDataProvider()

TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest::processDatabaseUpdatesCallsImportFileDataProvider ( )
Returns
array

Definition at line 244 of file InstallUtilityTest.php.

◆ processDatabaseUpdatesCallsImportStaticSqlFile()

TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest::processDatabaseUpdatesCallsImportStaticSqlFile ( )

◆ processDatabaseUpdatesCallsUpdateDbWithExtTablesSql()

TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest::processDatabaseUpdatesCallsUpdateDbWithExtTablesSql ( )

◆ setUp()

TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest::setUp ( )
Returns
void

Definition at line 45 of file InstallUtilityTest.php.

References TYPO3\CMS\Core\Tests\BaseTestCase\getAccessibleMock().

◆ tearDown()

array List of created fake extensions to be deleted in TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest::tearDown ( )
Returns
void

Definition at line 87 of file InstallUtilityTest.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\rmdir().

◆ uninstallCallsUnloadExtension()

TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest::uninstallCallsUnloadExtension ( )
Test:

Definition at line 194 of file InstallUtilityTest.php.

Member Data Documentation

◆ $extensionData

TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest::$extensionData = array()
protected

◆ $extensionKey

TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest::$extensionKey
protected

Definition at line 25 of file InstallUtilityTest.php.

◆ $fakedExtensions

TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest::$fakedExtensions = array()
protected

Definition at line 35 of file InstallUtilityTest.php.

◆ $installMock