ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
DataSetImportParserTest.php
Go to the documentation of this file.
1 <?php
2 
4 
10 class DataSetImportParserTest extends TestCase
11 {
13 
14  protected function setUp(): void
15  {
16  $GLOBALS["DIC"] = new \ILIAS\DI\Container();
17  }
18 
19  protected function tearDown(): void
20  {
21  unset($GLOBALS["DIC"]);
22  }
23 
24  public function testInstanceAndParseValidXML(): void
25  {
26  $map_mock = $this->createMock(ilImportMapping::class);
27  $ds_mock = $this->createMock(ilDataSet::class);
28  $parser = new ilDataSetImportParser(
29  "ent",
30  "1.0.0",
31  "<xml></xml>",
32  $ds_mock,
33  $map_mock
34  );
35  $this->assertInstanceOf(
36  \ilDataSetImportParser::class,
37  $parser
38  );
39  }
40 }
Manifest parser for ILIAS standard export files.
Test dashboard settings repository.
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
ilPDSelectedItemsBlockViewSettings $view_settings