ILIAS  trunk Revision v11.0_alpha-1689-g66c127b4ae8
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilTasksTestBase.php
Go to the documentation of this file.
1 <?php
2 
19 require_once __DIR__ . '/bootstrap.php';
20 
22 
29 {
33  protected $backupGlobals = false;
34 
35  protected $_mock_user;
36  protected $_mock_lng;
37  protected $_mock_ui;
38  protected $_mock_access;
40  protected $_mock_dic;
41 
45  protected function setUp(): void
46  {
47  $this->_mock_user = $this->getMockBuilder('ilObjUser')
48  ->disableOriginalConstructor()
49  ->getMock();
50 
51  $this->_mock_lng = $this->getMockBuilder('ilLanguage')
52  ->disableOriginalConstructor()
53  ->getMock();
54 
55  $this->_mock_ui = $this->getMockBuilder('\ILIAS\DI\UIServices')
56  ->disableOriginalConstructor()
57  ->getMock();
58 
59  $this->_mock_access = $this->getMockBuilder('ilAccessHandler')
60  ->disableOriginalConstructor()
61  ->getMock();
62 
63  require_once __DIR__ . '/class.ilDummyDerivedTaskProvider.php';
64  require_once __DIR__ . '/class.ilDummyDerivedTaskProviderFactory.php';
65 
66  $dummy_task_provider_factory = new ilDummyDerivedTaskProviderFactory();
67  $this->_mock_task_service = new ilTaskService(
68  $this->_mock_user,
69  $this->_mock_lng,
70  $this->_mock_ui,
71  $this->_mock_access,
72  [$dummy_task_provider_factory]
73  );
74  $dummy_task_provider_factory->setTaskService($this->_mock_task_service);
75  }
76 
77  public function getTaskServiceMock()
78  {
80  }
81 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Task service.
Base test class for tasks tests.