ILIAS  release_8 Revision v8.24
DataSetImportParserTest.php
Go to the documentation of this file.
1<?php
2
3use PHPUnit\Framework\TestCase;
4
10class 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}
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
Test dashboard settings repository.
ilPDSelectedItemsBlockViewSettings $view_settings
Manifest parser for ILIAS standard export files.