Skip to content

Commit

Permalink
Cleanup fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesbochmann committed Mar 11, 2024
1 parent 042dae4 commit 8b6fe47
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Tests/Unit/Middleware/AuthResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ class AuthResolverTest extends UnitTestCase
{
protected bool $resetSingletonInstances = true;

protected ?string $encryptionKeyBackup;
/**
* @var string|null
*/
protected $encryptionKeyBackup;

protected function setUp(): void
{
Expand All @@ -46,7 +49,7 @@ protected function setUp(): void
->setAspect('security', GeneralUtility::makeInstance(SecurityAspect::class));
}

$this->encryptionKeyBackup = $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] ?? [];
$this->encryptionKeyBackup = $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] ?? '';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] = 'test';
}

Expand Down

0 comments on commit 8b6fe47

Please sign in to comment.