TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Install\Controller\Action\Tool\TestSetup Class Reference
Inheritance diagram for TYPO3\CMS\Install\Controller\Action\Tool\TestSetup:
TYPO3\CMS\Install\Controller\Action\AbstractAction TYPO3\CMS\Install\Controller\Action\ActionInterface

Protected Member Functions

 executeAction ()
 
 getSenderEmailAddress ()
 
 getSenderEmailName ()
 
 getEmailSubject ()
 
 scaleImages ()
 
 combineImages ()
 
 getImageConfiguration ()
 
 isImageMagickEnabledAndConfigured ()
 
 determineImageMagickVersion ()
 
 setUpDatabaseConnectionMock ()
 
- Protected Member Functions inherited from TYPO3\CMS\Install\Controller\Action\AbstractAction
 initializeHandle ()
 
 executeAction ()
 
 isDbalEnabled ()
 
 getContext ()
 
 loadExtLocalconfDatabaseAndExtTables ()
 
 getHashedPassword ($password)
 

Protected Attributes

 $imageBasePath = ''
 
- Protected Attributes inherited from TYPO3\CMS\Install\Controller\Action\AbstractAction
 $objectManager = null
 
 $view = null
 
 $controller = ''
 
 $action = ''
 
 $token = ''
 
 $postValues = []
 
 $lastError = []
 
 $messages = []
 

Additional Inherited Members

- Public Member Functions inherited from TYPO3\CMS\Install\Controller\Action\AbstractAction
 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManager $objectManager)
 
 injectView (\TYPO3\CMS\Install\View\FailsafeView $view)
 
 handle ()
 
 setToken ($token)
 
 setController ($controller)
 
 setAction ($action)
 
 setPostValues (array $postValues)
 
 setLastError (array $lastError)
 
 setMessages (array $messages=[])
 

Detailed Description

Test various system setup settings

Definition at line 25 of file TestSetup.php.

Member Function Documentation

◆ combineImages()

◆ determineImageMagickVersion()

TYPO3\CMS\Install\Controller\Action\Tool\TestSetup::determineImageMagickVersion ( )
protected

◆ executeAction()

◆ getEmailSubject()

◆ getImageConfiguration()

TYPO3\CMS\Install\Controller\Action\Tool\TestSetup::getImageConfiguration ( )
protected

Gather image configuration overview

Returns
array Result array

Definition at line 636 of file TestSetup.php.

References $GLOBALS, and TYPO3\CMS\Install\Controller\Action\Tool\TestSetup\determineImageMagickVersion().

Referenced by TYPO3\CMS\Install\Controller\Action\Tool\TestSetup\executeAction().

◆ getSenderEmailAddress()

TYPO3\CMS\Install\Controller\Action\Tool\TestSetup::getSenderEmailAddress ( )
protected

Get sender address from configuration ['TYPO3_CONF_VARS']['MAIL']['defaultMailFromAddress'] If this setting is empty fall back to 'no-re.nosp@m.ply@.nosp@m.examp.nosp@m.le.c.nosp@m.om'

Returns
string Returns an email address

Definition at line 140 of file TestSetup.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Install\Controller\Action\Tool\TestSetup\executeAction().

◆ getSenderEmailName()

TYPO3\CMS\Install\Controller\Action\Tool\TestSetup::getSenderEmailName ( )
protected

Gets sender name from configuration ['TYPO3_CONF_VARS']['MAIL']['defaultMailFromName'] If this setting is empty, it falls back to a default string.

Returns
string

Definition at line 154 of file TestSetup.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Install\Controller\Action\Tool\TestSetup\executeAction().

◆ isImageMagickEnabledAndConfigured()

TYPO3\CMS\Install\Controller\Action\Tool\TestSetup::isImageMagickEnabledAndConfigured ( )
protected

Find out if ImageMagick or GraphicsMagick is enabled and set up

Returns
bool TRUE if enabled and path is set

Definition at line 674 of file TestSetup.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Install\Controller\Action\Tool\TestSetup\combineImages(), and TYPO3\CMS\Install\Controller\Action\Tool\TestSetup\executeAction().

◆ scaleImages()

TYPO3\CMS\Install\Controller\Action\Tool\TestSetup::scaleImages ( )
protected

◆ setUpDatabaseConnectionMock()

TYPO3\CMS\Install\Controller\Action\Tool\TestSetup::setUpDatabaseConnectionMock ( )
protected

Instantiate a dummy instance for $GLOBALS['TYPO3_DB'] to prevent real database calls

Returns
void

Definition at line 702 of file TestSetup.php.

References $database, and $GLOBALS.

Referenced by TYPO3\CMS\Install\Controller\Action\Tool\TestSetup\combineImages(), TYPO3\CMS\Install\Controller\Action\Tool\TestSetup\getEmailSubject(), and TYPO3\CMS\Install\Controller\Action\Tool\TestSetup\scaleImages().

Member Data Documentation

◆ $imageBasePath

TYPO3\CMS\Install\Controller\Action\Tool\TestSetup::$imageBasePath = ''
protected

Definition at line 30 of file TestSetup.php.