21use PHPUnit\Framework\TestCase;
22use Symfony\Component\Console\Input\InputInterface;
34 $this->config_reader = $this->createMock(ConfigReader::class);
35 $this->has_config_reader =
new class ($this->config_reader) {
39 $this->config_reader = $cr;
42 public function _readAgentConfig(
Agent $agent, InputInterface $input,
string $use_config_field =
null): ?
Config
51 $agent = $this->createMock(Agent::class);
52 $ii = $this->createMock(InputInterface::class);
59 $this->assertNull($this->has_config_reader->_readAgentConfig($agent, $ii));
Read a json-formatted config from a file and overwrite some fields.
testReadAgentConfigWithoutConfig()
__construct()
Constructor setup ILIAS global object @access public.
A agent is some component that performs part of the setup process.
A configuration for the setup.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
trait HasConfigReader
Add this to an Command that has an config reader.
readAgentConfig(Agent $agent, InputInterface $input, string $use_config_field=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...