Skip to content

CLI-1415: [auth:acsf-login] validate factory URL #2556

CLI-1415: [auth:acsf-login] validate factory URL

CLI-1415: [auth:acsf-login] validate factory URL #2556

Triggered via pull request November 14, 2024 19:36
Status Failure
Total duration 57s
Artifacts

mutation.yml

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

Annotations

1 error and 4 warnings
Mutation Testing
Process completed with exit code 1.
Mutation Testing: src/Command/App/LogTailCommand.php#L57
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ } protected function execute(InputInterface $input, OutputInterface $output) : int { - $environment = $this->determineEnvironment($input, $output, true); + $environment = $this->determineEnvironment($input, $output, false); $acquiaCloudClient = $this->cloudApiClientService->getClient(); $logs = $this->promptChooseLogs(); $logTypes = array_map(static function (mixed $log) {
Mutation Testing: src/Command/Auth/AuthAcsfLoginCommand.php#L67
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ return Command::SUCCESS; } } else { - $factoryUrl = $this->determineOption('factory-url', false, $this->validateUrl(...)); + $factoryUrl = $this->determineOption('factory-url', true, $this->validateUrl(...)); } $username = $this->determineOption('username'); $key = $this->determineOption('key', true, $this->validateApiKey(...));
Mutation Testing: src/Command/CommandBase.php#L1694
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ } protected static function validateUrl(?string $url) : string { - $violations = Validation::createValidator()->validate($url, [new NotBlank(), new Url()]); + $violations = Validation::createValidator()->validate($url, [new Url()]); if (count($violations)) { throw new ValidatorException($violations->get(0)->getMessage()); }
Mutation Testing: src/Command/Email/ConfigurePlatformEmailCommand.php#L228
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ /** * Validates the URL entered as the base domain name. */ - public static function validateUrl(?string $url) : string + protected static function validateUrl(?string $url) : string { $constraintsList = [new NotBlank()]; $urlParts = parse_url($url);