Skip to content

CLI-1396: [app:new:local] Add project template option #2607

CLI-1396: [app:new:local] Add project template option

CLI-1396: [app:new:local] Add project template option #2607

Triggered via pull request December 6, 2024 22:44
Status Failure
Total duration 49s
Artifacts

mutation.yml

on: pull_request
Mutation Testing
38s
Mutation Testing
Fit to window
Zoom out
Zoom in

Annotations

1 error and 3 warnings
Mutation Testing
Process completed with exit code 1.
Mutation Testing: src/Command/App/NewCommand.php#L32
Escaped Mutant for Mutator "UnwrapArrayKeys": --- Original +++ New @@ @@ private static array $distros = ['acquia_drupal_recommended' => 'acquia/drupal-recommended-project', 'acquia_next_acms' => 'acquia/next-acms']; protected function configure() : void { - $this->addArgument('directory', InputArgument::OPTIONAL, 'The destination directory')->addOption('template', 't', InputOption::VALUE_OPTIONAL, 'The project template', null, array_keys(self::$distros))->addUsage('-t acquia_drupal_recommended'); + $this->addArgument('directory', InputArgument::OPTIONAL, 'The destination directory')->addOption('template', 't', InputOption::VALUE_OPTIONAL, 'The project template', null, self::$distros)->addUsage('-t acquia_drupal_recommended'); } /** * @throws \Acquia\Cli\Exception\AcquiaCliException
Mutation Testing: src/Command/App/NewCommand.php#L44
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation": --- Original +++ New @@ @@ { $this->output->writeln('Acquia recommends most customers use <options=bold>acquia/drupal-recommended-project</> to setup a Drupal project, which includes useful utilities such as Acquia Connector.'); $this->output->writeln('<options=bold>acquia/next-acms</> is a starter template for building a headless site powered by Acquia CMS and Next.js.'); - if ($input->hasOption('template') && $input->getOption('template')) { + if (!$input->hasOption('template') && !$input->getOption('template')) { $project = $input->getOption('template'); } else { $project = $this->io->choice('Choose a starting project', array_values(self::$distros), self::$distros['acquia_drupal_recommended']);
Mutation Testing: src/Command/App/NewCommand.php#L44
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation": --- Original +++ New @@ @@ { $this->output->writeln('Acquia recommends most customers use <options=bold>acquia/drupal-recommended-project</> to setup a Drupal project, which includes useful utilities such as Acquia Connector.'); $this->output->writeln('<options=bold>acquia/next-acms</> is a starter template for building a headless site powered by Acquia CMS and Next.js.'); - if ($input->hasOption('template') && $input->getOption('template')) { + if (!$input->hasOption('template') && $input->getOption('template')) { $project = $input->getOption('template'); } else { $project = $this->io->choice('Choose a starting project', array_values(self::$distros), self::$distros['acquia_drupal_recommended']);