/**
  * @throws LocalizedException
  */
 public function update()
 {
     $dbCodes = $this->config->getAvailableDatabases();
     foreach ($dbCodes as $dbCode) {
         $this->updater->update($dbCode);
     }
 }
 public function testUpdate()
 {
     $availableDatabases = ['db_code_1', 'db_code_2', 'db_cod_3'];
     $countAvailableDatabases = count($availableDatabases);
     $this->config->expects($this->once())->method('getAvailableDatabases')->willReturn($availableDatabases);
     $this->updater->expects($this->exactly($countAvailableDatabases))->method('update')->withConsecutive(['db_code_1'], ['db_code_2'], ['db_cod_3']);
     $this->updaterSelected->update();
 }