-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GL-2039: Added prompt for nodejs and php project selection. (#1683)
* GL-2039: Added prompt for nodejs and php project selection. * GL-2039: Updated getlist for pipeline migrate command to use drupal project as default. * GL-2039: Updated file improving test checks. * GL-2039: Updated test file to resolve error in test checks. * GL-2039: Resolved review commnets and added testcases. * kill mutant * GL-2039: Replace if-else with sw-case to resolve mutation warning. * GL-2039: Tried adding testcase to kill mutant. * GL-2039: Updated testcases and alternate logic. * GL-2039: Add assertion to kill mutant FalseValue and TrueValue. * GL-2039: Applied fix for mutant TRUEVAL and FLASEVAL. * Revert "GL-2039: Applied fix for mutant TRUEVAL and FLASEVAL." This reverts commit 6ed1e9f. * GL-2039: Applied fix for mutant TRUEVAL and FLASEVAL. * Revert "GL-2039: Applied fix for mutant TRUEVAL and FLASEVAL." This reverts commit 0dac450. * GL-2039-1: Added test file for ci-cd variables. * GL-2039-1: Refactor testcase. * GL-2039-1: Addressed integer increment mutant. * GL-2039-1: Added default value instead of fetching it from array. * GL-2039-1: Added assertion to kill MethodCallRemoval mutant. * GL-2039: modified testcase. --------- Co-authored-by: Dane Powell <[email protected]>
- Loading branch information
1 parent
d7af9cf
commit babf3ba
Showing
7 changed files
with
327 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
tests/phpunit/src/Commands/CodeStudio/CodeStudioCiCdVariablesTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
declare(strict_types = 1); | ||
|
||
namespace Acquia\Cli\Tests\Commands\CodeStudio; | ||
|
||
use Acquia\Cli\Command\CodeStudio\CodeStudioCiCdVariables; | ||
use Acquia\Cli\Tests\TestBase; | ||
|
||
class CodeStudioCiCdVariablesTest extends TestBase { | ||
|
||
public function testGetDefaultsForNode(): void { | ||
$codeStudioCiCdVariablesObj = new CodeStudioCiCdVariables(); | ||
$variables = $codeStudioCiCdVariablesObj->getDefaultsForNode(); | ||
$this->testBooleanValues($variables); | ||
$variables = $codeStudioCiCdVariablesObj->getDefaultsForPhp(); | ||
$this->testBooleanValues($variables); | ||
} | ||
|
||
protected function testBooleanValues(array $variables): void { | ||
foreach ($variables as $variable) { | ||
$maskedValue = $variable['masked']; | ||
$this->assertEquals(TRUE, $maskedValue); | ||
$protectedValue = $variable['protected']; | ||
$this->assertEquals(FALSE, $protectedValue); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.