2 declare(strict_types = 1);
22 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
39 protected function setUp()
41 $this->frontendControllerMock = $this->getMockBuilder(TypoScriptFrontendController::class)->disableOriginalConstructor()->getMock();
42 $this->frontendControllerMock->id = 42;
46 $this->frontendControllerMock
56 $request->setArguments([
'foo' =>
'bar']);
57 $this->frontendControllerMock
58 ->expects($this->once())
61 $this->subject->enforceForRequest($request,
'tx_foo');
69 $request =
new Request();
70 $this->frontendControllerMock
71 ->expects($this->never())
74 $this->subject->enforceForRequest($request,
'tx_foo');