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

Public Member Functions

 getPackageReturnsTheSpecifiedPackage ()
 
 getPackageThrowsExceptionOnUnknownPackage ()
 
 scanAvailablePackagesTraversesThePackagesDirectoryAndRegistersPackagesItFinds ()
 
 packageKeysAndPaths ()
 
 createPackageCreatesPackageFolderAndReturnsPackage ($packageKey, $expectedPackagePath)
 
 activatePackageAndDeactivatePackageActivateAndDeactivateTheGivenPackage ()
 
 deactivatePackageThrowsAnExceptionIfPackageIsProtected ()
 
 deletePackageThrowsErrorIfPackageIsNotAvailable ()
 
 deletePackageThrowsAnExceptionIfPackageIsProtected ()
 
 deletePackageRemovesPackageFromAvailableAndActivePackagesAndDeletesThePackageDirectory ()
 
 composerNamesAndPackageKeys ()
 
 getPackageKeyFromComposerNameIgnoresCaseDifferences ($composerName, $packageKey)
 

Protected Member Functions

 createPackage ($packageKey)
 
- 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

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

Detailed Description

Testcase for the default package manager

Definition at line 27 of file PackageManagerTest.php.

Member Function Documentation

activatePackageAndDeactivatePackageActivateAndDeactivateTheGivenPackage ( )
Test:

Definition at line 276 of file PackageManagerTest.php.

References PackageManagerTest\createPackage().

composerNamesAndPackageKeys ( )
Returns
array

Definition at line 351 of file PackageManagerTest.php.

createPackageCreatesPackageFolderAndReturnsPackage (   $packageKey,
  $expectedPackagePath 
)
Test:
packageKeysAndPaths

Definition at line 262 of file PackageManagerTest.php.

References PackageManagerTest\createPackage().

deactivatePackageThrowsAnExceptionIfPackageIsProtected ( )
Test:

Definition at line 294 of file PackageManagerTest.php.

References PackageManagerTest\createPackage().

deletePackageRemovesPackageFromAvailableAndActivePackagesAndDeletesThePackageDirectory ( )
Test:

Definition at line 333 of file PackageManagerTest.php.

References PackageManagerTest\createPackage().

deletePackageThrowsAnExceptionIfPackageIsProtected ( )
Test:

Definition at line 320 of file PackageManagerTest.php.

References PackageManagerTest\createPackage().

deletePackageThrowsErrorIfPackageIsNotAvailable ( )
Test:

Definition at line 308 of file PackageManagerTest.php.

getPackageKeyFromComposerNameIgnoresCaseDifferences (   $composerName,
  $packageKey 
)
Test:
composerNamesAndPackageKeys

Definition at line 365 of file PackageManagerTest.php.

References PackageManagerTest\$packageManager, and BaseTestCase\getAccessibleMock().

getPackageReturnsTheSpecifiedPackage ( )
Test:

Definition at line 91 of file PackageManagerTest.php.

References PackageManagerTest\createPackage().

getPackageThrowsExceptionOnUnknownPackage ( )
Test:

Definition at line 102 of file PackageManagerTest.php.

packageKeysAndPaths ( )

Data Provider returning valid package keys and the corresponding path

Returns
array

Definition at line 250 of file PackageManagerTest.php.

scanAvailablePackagesTraversesThePackagesDirectoryAndRegistersPackagesItFinds ( )

Member Data Documentation