24 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
45 $this->expectException(\InvalidArgumentException::class);
46 $this->expectExceptionCode(1285352962);
56 $this->expectException(\InvalidArgumentException::class);
57 $this->expectExceptionCode(1285353026);
67 $userMock = $this->createMock(BackendUserAuthentication::class);
68 $userMock->user = [
'uid' => $this->getUniqueId()];
69 $this->assertInstanceOf(
70 BackendFormProtection::class,
72 BackendFormProtection::class,
74 $this->createMock(Registry::class)
84 $userMock = $this->createMock(BackendUserAuthentication::class);
85 $userMock->user = [
'uid' => $this->getUniqueId()];
87 BackendFormProtection::class,
89 $this->createMock(Registry::class)
92 call_user_func_array([FormProtectionFactory::class,
'get'], $arguments),
93 call_user_func_array([FormProtectionFactory::class,
'get'], $arguments)