‪TYPO3CMS  10.4
TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest Class Reference
Inheritance diagram for TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest:

Public Member Functions

 getSenderShouldReturnAddressWithFallbackFromGlobals ()
 
 getSenderShouldReturnAddressWithConfigFromTypoScript ()
 
 getEmailTemplateNameThrowsExceptionIfTemplateNameIsEmpty ()
 
 getLifeTimeTimestampShouldReturnTimestamp ()
 
 getForgotHashShouldReturnHashWithLifeTimeTimestamp ()
 
 getReplyToShouldReturnNullIfNoneAreSet ()
 
 getMailTemplatePathsReturnsAnInstanceOfTemplatePathsObjectWithConfigurationOfTypoScript ()
 
 getMailTemplatePathsReplacesTemplatePathsWithPathsConfiguredInTypoScript ()
 
 getMailTemplateNameWillReturnTemplateNameConfiguredInTypoScript ()
 
 recoveryConfigurationWillCreateAnInstanceOfAddressIfDefaultMailReplyToAddressIsSet ()
 
 recoveryConfigurationWillCreateAnInstanceOfAddressWithName ()
 

Protected Member Functions

 setUp ()
 
 setupSubject ()
 

Protected Attributes

ObjectProphecy Context $context
 
ObjectProphecy ConfigurationManager $configurationManager
 
ObjectProphecy HashService $hashService
 
array $settings
 
RecoveryConfiguration $subject
 
ObjectProphecy LoggerInterface $logger
 

Detailed Description

Definition at line 34 of file RecoveryConfigurationTest.php.

Member Function Documentation

◆ getEmailTemplateNameThrowsExceptionIfTemplateNameIsEmpty()

TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest::getEmailTemplateNameThrowsExceptionIfTemplateNameIsEmpty ( )

◆ getForgotHashShouldReturnHashWithLifeTimeTimestamp()

TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest::getForgotHashShouldReturnHashWithLifeTimeTimestamp ( )

◆ getLifeTimeTimestampShouldReturnTimestamp()

TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest::getLifeTimeTimestampShouldReturnTimestamp ( )

◆ getMailTemplateNameWillReturnTemplateNameConfiguredInTypoScript()

TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest::getMailTemplateNameWillReturnTemplateNameConfiguredInTypoScript ( )

◆ getMailTemplatePathsReplacesTemplatePathsWithPathsConfiguredInTypoScript()

TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest::getMailTemplatePathsReplacesTemplatePathsWithPathsConfiguredInTypoScript ( )

◆ getMailTemplatePathsReturnsAnInstanceOfTemplatePathsObjectWithConfigurationOfTypoScript()

TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest::getMailTemplatePathsReturnsAnInstanceOfTemplatePathsObjectWithConfigurationOfTypoScript ( )

◆ getReplyToShouldReturnNullIfNoneAreSet()

TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest::getReplyToShouldReturnNullIfNoneAreSet ( )

◆ getSenderShouldReturnAddressWithConfigFromTypoScript()

TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest::getSenderShouldReturnAddressWithConfigFromTypoScript ( )

◆ getSenderShouldReturnAddressWithFallbackFromGlobals()

TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest::getSenderShouldReturnAddressWithFallbackFromGlobals ( )

◆ recoveryConfigurationWillCreateAnInstanceOfAddressIfDefaultMailReplyToAddressIsSet()

TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest::recoveryConfigurationWillCreateAnInstanceOfAddressIfDefaultMailReplyToAddressIsSet ( )

◆ recoveryConfigurationWillCreateAnInstanceOfAddressWithName()

TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest::recoveryConfigurationWillCreateAnInstanceOfAddressWithName ( )

◆ setUp()

TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest::setUp ( )
protected

Definition at line 71 of file RecoveryConfigurationTest.php.

◆ setupSubject()

TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest::setupSubject ( )
protected
Exceptions
InvalidConfigurationTypeException
IncompleteConfigurationException

Definition at line 87 of file RecoveryConfigurationTest.php.

References TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface\CONFIGURATION_TYPE_SETTINGS.

Referenced by TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest\getEmailTemplateNameThrowsExceptionIfTemplateNameIsEmpty(), TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest\getForgotHashShouldReturnHashWithLifeTimeTimestamp(), TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest\getLifeTimeTimestampShouldReturnTimestamp(), TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest\getMailTemplateNameWillReturnTemplateNameConfiguredInTypoScript(), TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest\getMailTemplatePathsReplacesTemplatePathsWithPathsConfiguredInTypoScript(), TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest\getMailTemplatePathsReturnsAnInstanceOfTemplatePathsObjectWithConfigurationOfTypoScript(), TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest\getReplyToShouldReturnNullIfNoneAreSet(), TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest\getSenderShouldReturnAddressWithConfigFromTypoScript(), TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest\getSenderShouldReturnAddressWithFallbackFromGlobals(), TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest\recoveryConfigurationWillCreateAnInstanceOfAddressIfDefaultMailReplyToAddressIsSet(), and TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest\recoveryConfigurationWillCreateAnInstanceOfAddressWithName().

Member Data Documentation

◆ $configurationManager

ObjectProphecy ConfigurationManager TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest::$configurationManager
protected

Definition at line 42 of file RecoveryConfigurationTest.php.

◆ $context

ObjectProphecy Context TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest::$context
protected

Definition at line 38 of file RecoveryConfigurationTest.php.

◆ $hashService

ObjectProphecy HashService TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest::$hashService
protected

Definition at line 46 of file RecoveryConfigurationTest.php.

◆ $logger

ObjectProphecy LoggerInterface TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest::$logger
protected

Definition at line 69 of file RecoveryConfigurationTest.php.

◆ $settings

array TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest::$settings
protected
Initial value:
= array(
'email_from' => 'example@example.com',
'email_fromName' => 'TYPO3 Installation',
'email' => [
'layoutRootPaths' => [20 => '/some/path/to/a/layout/folder/'],
'templateRootPaths' => [20 => '/some/path/to/a/template/folder/'],
'partialRootPaths' => [20 => '/some/path/to/a/partial/folder/'],
'templateName' => 'someTemplateFileName',
],
'forgotLinkHashValidTime' => 1,
'replyTo' => ''
)

Definition at line 50 of file RecoveryConfigurationTest.php.

◆ $subject

RecoveryConfiguration TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest::$subject
protected

Definition at line 65 of file RecoveryConfigurationTest.php.