CLI-1415: [auth:acsf-login] validate factory URL #2556
Annotations
1 error and 4 warnings
Run Infection for added files only
Process completed with exit code 1.
|
Run Infection for added files only:
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) {
|
Run Infection for added files only:
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(...));
|
Run Infection for added files only:
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());
}
|
Run Infection for added files only:
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);
|
Loading