Definition at line 30 of file StatusCommandTest.php.
◆ testMetrics()
ILIAS\Tests\Setup\CLI\StatusCommandTest::testMetrics |
( |
| ) |
|
Definition at line 32 of file StatusCommandTest.php.
34 $agent_finder = $this->createMock(Setup\AgentFinder::class);
35 $obj =
new Setup\CLI\StatusCommand($agent_finder);
36 $storage =
new Metrics\ArrayStorage();
37 $objective = $this->createMock(Setup\Objective::class);
38 $agent = $this->createMock(Setup\AgentCollection::class);
39 $expected =
new M(M::STABILITY_MIXED, M::TYPE_COLLECTION, []);
42 ->expects($this->once())
43 ->method(
"getStatusObjective")
45 ->willReturn(
new Setup\ObjectiveCollection(
"text",
false, $objective));
47 $result = $obj->getMetrics($agent);
49 $this->assertEquals($expected, $result);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
The documentation for this class was generated from the following file: