TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
AcceptanceCoreEnvironment Class Reference
Inheritance diagram for AcceptanceCoreEnvironment:

Public Member Functions

 bootstrapTypo3Environment (SuiteEvent $suiteEvent)
 
 cleanupTypo3Environment ()
 

Static Public Attributes

static $events
 

Protected Member Functions

 getInstallToolPassword ()
 

Protected Attributes

 $coreExtensionsToLoad = []
 
 $testExtensionsToLoad = []
 
 $pathsToLinkInTestInstance = []
 
 $configurationToUseInTestInstance = []
 
 $additionalFoldersToCreate = []
 
 $xmlDatabaseFixtures
 

Detailed Description

This codeception extension creates a full TYPO3 instance within typo3temp. Own acceptance test suites may extend from this class and change the properties. This can be used to not copy the whole bootstrapTypo3Environment() method but reuse it instead.

Definition at line 33 of file AcceptanceCoreEnvironment.php.

Member Function Documentation

bootstrapTypo3Environment ( SuiteEvent  $suiteEvent)

Handle SUITE_BEFORE event.

Create a full standalone TYPO3 instance within typo3temp/var/tests/acceptance, create a database and create database schema.

Parameters
SuiteEvent$suiteEvent
Exceptions
Exception

Definition at line 160 of file AcceptanceCoreEnvironment.php.

References $GLOBALS, AcceptanceCoreEnvironment\$testExtensionsToLoad, AcceptanceCoreEnvironment\cleanupTypo3Environment(), AcceptanceCoreEnvironment\getInstallToolPassword(), and Bootstrap\getInstance().

cleanupTypo3Environment ( )

Method executed after each test

Returns
void

Definition at line 273 of file AcceptanceCoreEnvironment.php.

References GeneralUtility\makeInstance().

Referenced by AcceptanceCoreEnvironment\bootstrapTypo3Environment().

getInstallToolPassword ( )
protected

Set install tool password. This is either a salted password of a given typo3InstallToolPassword environment variable, or a hardcoded value that does not allow login.

Returns
string

Definition at line 289 of file AcceptanceCoreEnvironment.php.

References SaltFactory\getSaltingInstance().

Referenced by AcceptanceCoreEnvironment\bootstrapTypo3Environment().

Member Data Documentation

$additionalFoldersToCreate = []
protected

Definition at line 125 of file AcceptanceCoreEnvironment.php.

$configurationToUseInTestInstance = []
protected

Definition at line 102 of file AcceptanceCoreEnvironment.php.

$coreExtensionsToLoad = []
protected

Definition at line 46 of file AcceptanceCoreEnvironment.php.

$events
static
Initial value:
= [
Events::SUITE_BEFORE => 'bootstrapTypo3Environment'

Events to listen to

Definition at line 146 of file AcceptanceCoreEnvironment.php.

$pathsToLinkInTestInstance = []
protected

Definition at line 92 of file AcceptanceCoreEnvironment.php.

$testExtensionsToLoad = []
protected
$xmlDatabaseFixtures
protected
Initial value:
= [
'typo3/sysext/core/Tests/Acceptance/Fixtures/be_users.xml',
'typo3/sysext/core/Tests/Acceptance/Fixtures/be_sessions.xml',
'typo3/sysext/core/Tests/Acceptance/Fixtures/be_groups.xml',
'typo3/sysext/core/Tests/Acceptance/Fixtures/sys_category.xml',
'typo3/sysext/core/Tests/Acceptance/Fixtures/tx_extensionmanager_domain_model_extension.xml',
'typo3/sysext/core/Tests/Acceptance/Fixtures/tx_extensionmanager_domain_model_repository.xml',
]

Definition at line 134 of file AcceptanceCoreEnvironment.php.