36 : void
37 {
38 parent::setUp();
40
41 $this->
ctrl = $this->getMockBuilder(ilCtrl::class)->disableOriginalConstructor()->onlyMethods([
42 'getFormAction',
43 'getCmd'
44 ])->getMock();
45
47 $tpl = $ui_helper->mainTemplate();
48 $ui_factory = $ui_helper->factory();
50 $request = $this->getMockBuilder(WrapperFactory::class)->disableOriginalConstructor()->onlyMethods([
51 ])->getMock();
52
53 $toolbar = $this->getMockBuilder(ilToolbarGUI::class)->disableOriginalConstructor()->onlyMethods([])->getMock();
54 $tabs = $this->getMockBuilder(ilTabsGUI::class)->disableOriginalConstructor()->onlyMethods([])->getMock();
55 $data_factory = new DataFactory();
57
59 $help = $this->getMockBuilder(ilHelpGUI::class)->disableOriginalConstructor()->onlyMethods([
60 ])->getMock();
61 $upload = $this->getMockBuilder(FileUpload::class)->disableOriginalConstructor()->onlyMethods([])->getMock();
62
66 $tpl,
67 $ui_factory,
69 $request,
70 $toolbar,
72 $factory,
73 $upload,
74 $tabs,
75 $help,
76 $this->container->getSkin()->getId(),
77 $this->style->getId(),
78 '1',
79 false,
80 true
81 );
82 }
trait UITestHelper
Class UITestHelper can be helpful for test cases outside the UI Components, to inject a working facto...
Factory to create Skin classes holds an manages the basic data of a skin as provide by the template o...