protected function setUp() { $this->subject = new DatabaseUserPermissionCheck(); $this->beUserProphecy = $this->prophesize(BackendUserAuthentication::class); $GLOBALS['BE_USER'] = $this->beUserProphecy->reveal(); $GLOBALS['BE_USER']->user['uid'] = 42; }
protected function setUp() { /** @var BackendUserAuthentication|ObjectProphecy backendUserProphecy */ $this->backendUserProphecy = $this->prophesize(BackendUserAuthentication::class); $GLOBALS['BE_USER'] = $this->backendUserProphecy->reveal(); $GLOBALS['BE_USER']->groupData['non_exclude_fields'] = ''; // Some tests call FormDataCompiler for sub elements. Those tests have functional test characteristics. // This is ok for the time being, but this settings takes care only parts of the compiler are called // to have less dependencies. $GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['formDataGroup']['flexFormSegment'] = []; $this->subject = new TcaFlexProcess(); }
protected function setUp() { $this->beUserProphecy = $this->prophesize(BackendUserAuthentication::class); $GLOBALS['BE_USER'] = $this->beUserProphecy->reveal(); $this->subject = new TcaInline(); }