ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
DataSetImportParserTest.php
Go to the documentation of this file.
1<?php
2
19use PHPUnit\Framework\TestCase;
20
26class DataSetImportParserTest extends TestCase
27{
29
30 protected function setUp(): void
31 {
32 $GLOBALS["DIC"] = new \ILIAS\DI\Container();
33 }
34
35 protected function tearDown(): void
36 {
37 unset($GLOBALS["DIC"]);
38 }
39
40 public function testInstanceAndParseValidXML(): void
41 {
42 $map_mock = $this->createMock(ilImportMapping::class);
43 $ds_mock = $this->createMock(ilDataSet::class);
44 $parser = new ilDataSetImportParser(
45 "ent",
46 "1.0.0",
47 "<xml></xml>",
48 $ds_mock,
49 $map_mock
50 );
51 $this->assertInstanceOf(
52 \ilDataSetImportParser::class,
53 $parser
54 );
55 }
56}
Test dashboard settings repository.
ilPDSelectedItemsBlockViewSettings $view_settings
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$GLOBALS["DIC"]
Definition: wac.php:54