CodeExplorer ElasticsearchUpdateMappingCommand example
class ElasticsearchUpdateMappingCommandTest extends TestCase
{ public function testUpdate(): void
{ $updater =
$this->
createMock(IndexMappingUpdater::
class);
$updater ->
expects(static::
once()) ->
method('update'
);
$command =
new ElasticsearchUpdateMappingCommand( $updater );
$tester =
new CommandTester($command);
$tester->
execute([]);
}}