We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1394c0f commit e65724cCopy full SHA for e65724c
1 file changed
Tests/Functional/Service/RedirectDemandServiceTest.php
@@ -6,6 +6,7 @@
6
7
use Ayacoo\RedirectTab\Service\RedirectDemandService;
8
use PHPUnit\Framework\Attributes\Test;
9
+use TYPO3\CMS\Core\Authentication\BackendUserAuthentication;
10
use TYPO3\CMS\Core\Cache\Frontend\FrontendInterface;
11
use TYPO3\CMS\Core\Configuration\SiteConfiguration;
12
use TYPO3\CMS\Core\Site\Entity\NullSite;
@@ -24,6 +25,9 @@ final class RedirectDemandServiceTest extends FunctionalTestCase
24
25
protected function setUp(): void
26
{
27
parent::setUp();
28
+ $backendUserAuthentication = $this->createMock(BackendUserAuthentication::class);
29
+ $backendUserAuthentication->method('isAdmin')->withAnyParameters()->willReturn(true);
30
+ $GLOBALS['BE_USER'] = $backendUserAuthentication;
31
32
$this->subject = $this->get(RedirectDemandService::class);
33
}
0 commit comments