20 $this->config_reader = $this->createMock(ConfigReader::class);
21 $this->has_config_reader =
new class($this->config_reader) {
25 $this->config_reader = $cr;
28 public function _readAgentConfig(
Agent $agent, InputInterface $input) : ?
Config 37 $agent = $this->createMock(Agent::class);
38 $ii = $this->createMock(InputInterface::class);
45 $this->assertNull($this->has_config_reader->_readAgentConfig($agent, $ii));
A agent is some component that performs part of the setup process.
readAgentConfig(Agent $agent, InputInterface $input)
testReadAgentConfigWithoutConfig()
A configuration for the setup.
__construct($a_client_id=0)
Constructor setup ILIAS global object public.
trait HasConfigReader
Add this to an Command that has an config reader.