Skip to content

Commit

Permalink
More test fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Jan 30, 2022
1 parent ceef271 commit cc4ae54
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
10 changes: 10 additions & 0 deletions src/Application.php
Expand Up @@ -405,4 +405,14 @@ public function renderException(\Exception $e, OutputInterface $output)

$this->doRenderException($e, $output);
}

/**
* Renders a caught Throwable. Omits the command docs at end.
*/
public function renderThrowable(\Throwable $e, OutputInterface $output): void
{
$output->writeln('', OutputInterface::VERBOSITY_QUIET);

$this->doRenderThrowable($e, $output);
}
}
3 changes: 3 additions & 0 deletions src/Command/RemoteCommandProxy.php
Expand Up @@ -40,6 +40,9 @@ public function __construct($name, RedispatchHook $redispatchHook)
InputArgument::IS_ARRAY,
'Proxy for command arguments'
);

// The above should be enough but isn't in Drupal 10.
$this->ignoreValidationErrors();
}

protected function execute(InputInterface $input, OutputInterface $output): void
Expand Down
4 changes: 2 additions & 2 deletions src/Drupal/Commands/core/DeployHookCommands.php
Expand Up @@ -25,8 +25,8 @@ class DeployHookCommands extends DrushCommands implements SiteAliasManagerAwareI
public static function getRegistry(): UpdateRegistry
{
$registry = new class (
\Drupal::service('app.root'),
\Drupal::service('site.path'),
\Drupal::getContainer()->getParameter('app.root'),
\Drupal::getContainer()->getParameter('site.path'),
array_keys(\Drupal::service('module_handler')->getModuleList()),
\Drupal::service('keyvalue')->get('deploy_hook')
) extends UpdateRegistry {
Expand Down

0 comments on commit cc4ae54

Please sign in to comment.