19 declare(strict_types=1);
35 protected function setUp(): void
37 $refinery =
new Refinery($this->createMock(DataFactory::class), $this->createMock(\ilLanguage::class));
38 $setup_language = $this->createMock(ilSetupLanguage::class);
40 $this->obj = new \ilLanguageSetupAgent(
$refinery, $setup_language);
45 $this->assertInstanceOf(\ilLanguageSetupAgent::class, $this->obj);
50 $this->assertFalse($this->obj->hasConfig());
55 $this->expectException(LogicException::class);
57 $this->obj->getArrayToConfigTransformation();
62 $objective_collection = $this->obj->getInstallObjective();
64 $this->assertEquals(
'Complete objectives from components/ILIAS/Language', $objective_collection->getLabel());
65 $this->assertFalse($objective_collection->isNotable());
66 $this->assertCount(2, $objective_collection->getObjectives());
71 $objective_collection = $this->obj->getUpdateObjective();
73 $this->assertEquals(
'Complete objectives from components/ILIAS/Language', $objective_collection->getLabel());
74 $this->assertFalse($objective_collection->isNotable());
75 $this->assertCount(1, $objective_collection->getObjectives());
80 $result = $this->obj->getBuildObjective();
82 $this->assertInstanceOf(NullObjective::class, $result);
Class ilLanguageSetupAgentTest.
testGetArrayToConfigTransformation()
Class ilLanguageBaseTest.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
testGetInstallObjectives()
testGetBuildArtifactObjective()