[BUGFIX] adminpanel: Do not use getTSConfig in a deprecated way
[Packages/TYPO3.CMS.git] / typo3 / sysext / adminpanel / Tests / Unit / Middleware / AdminPanelInitiatorTest.php
index d76ef5e..2b1f1dd 100644 (file)
@@ -55,7 +55,7 @@ class AdminPanelInitiatorTest extends UnitTestCase
             ]
         ];
         $userAuthentication = $this->prophesize(FrontendBackendUserAuthentication::class);
-        $userAuthentication->getTSConfig(Argument::any())->willReturn($tsConfig);
+        $userAuthentication->getTSConfig()->willReturn($tsConfig);
         $userAuthentication->uc = $uc;
         $GLOBALS['BE_USER'] = $userAuthentication->reveal();
 
@@ -121,7 +121,7 @@ class AdminPanelInitiatorTest extends UnitTestCase
     protected function checkAdminPanelDoesNotCallInitialize($tsConfig, $uc): void
     {
         $userAuthentication = $this->prophesize(FrontendBackendUserAuthentication::class);
-        $userAuthentication->getTSConfig(Argument::any())->willReturn($tsConfig);
+        $userAuthentication->getTSConfig()->willReturn($tsConfig);
         $userAuthentication->uc = $uc;
         $GLOBALS['BE_USER'] = $userAuthentication->reveal();