protected function setUp(): void
{ $this->refreshIndexCommand =
$this->
getContainer()->
get(ElasticsearchResetCommand::
class);
$this->
getContainer()->
get(AbstractKeyValueStorage::
class)->
set(ElasticsearchIndexer::ENABLE_MULTILINGUAL_INDEX_KEY, 1
);
$this->connection =
$this->
getContainer()->
get(Connection::
class);
} public function testExecuteWithInputNo(): void
{ $commandTester =
new CommandTester($this->refreshIndexCommand
);
$commandTester->
setInputs(['no'
]);
$commandTester->
execute([]);
$message =
$commandTester->
getDisplay();
static::
assertStringContainsString('Are you sure you want to reset the Elasticsearch indexing?',
$message);
static::
assertStringContainsString('Canceled clearing indexing process',
$message);
} public function testExecuteWithInput(): void
{