21use PHPUnit\Framework\TestCase;
22use Symfony\Component\Console\Input\InputInterface;
35 $this->config_reader = $this->createMock(ConfigReader::class);
40 $this->config_reader = $cr;
43 public function _readAgentConfig(
Agent $agent, InputInterface $input, ?
string $use_config_field =
null): ?
Config
52 $agent = $this->createMock(Agent::class);
53 $ii = $this->createMock(InputInterface::class);
60 $this->assertNull($this->has_config_reader->_readAgentConfig($agent, $ii));
Read a json-formatted config from a file and overwrite some fields.
testReadAgentConfigWithoutConfig()
ConfigReader $config_reader
__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.
readAgentConfig(Agent $agent, InputInterface $input, ?string $use_config_field=null)
trait HasConfigReader
Add this to an Command that has an config reader.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...