2 declare(strict_types = 1);
22 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
34 self::assertFalse($isEnabled);
42 $GLOBALS[
'BE_USER'] = $this->prophesize(BackendUserAuthentication::class)->reveal();
44 self::assertFalse($isEnabled);
50 '1 module enabled' => [
59 'all modules enabled' => [
78 $beUserProphecy = $this->prophesize(FrontendBackendUserAuthentication::class);
79 $beUserProphecy->getTSConfig()->willReturn($tsConfig);
80 $GLOBALS[
'BE_USER'] = $beUserProphecy->reveal();
82 self::assertTrue($isEnabled);
91 'all modules disabled' => [
98 'single module configured, disabled' => [
115 $beUserProphecy = $this->prophesize(FrontendBackendUserAuthentication::class);
116 $beUserProphecy->getTSConfig()->willReturn($tsConfig);
117 $GLOBALS[
'BE_USER'] = $beUserProphecy->reveal();
119 self::assertFalse($isEnabled);