Skip to content

Commit

Permalink
Change to TestBase.
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash committed May 23, 2024
1 parent 07540a7 commit d8d08ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/Helpers/TelemetryHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ public static function getProviders(): array {
'platformsh' => ['PLATFORM_ENVIRONMENT'],
'teamcity' => ['TEAMCITY_VERSION'],
'travis' => ['TRAVIS'],
// docksal?
// docker?
];
}

Expand Down
7 changes: 1 addition & 6 deletions tests/phpunit/src/Misc/TelemetryHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
use Acquia\Cli\Command\CommandBase;
use Acquia\Cli\Command\Self\ClearCacheCommand;
use Acquia\Cli\Helpers\TelemetryHelper;
use Acquia\Cli\Tests\CommandTestBase;
use Acquia\Cli\Tests\TestBase;

class TelemetryHelperTest extends CommandTestBase {
class TelemetryHelperTest extends TestBase {

const ENV_VAR_DEFAULT_VALUE = 'test';

Expand All @@ -35,10 +34,6 @@ public function unsetGitHubEnvVars(): void {
TestBase::unsetEnvVars($github_env_vars);
}

protected function createCommand(): CommandBase {
return $this->injectCommand(ClearCacheCommand::class);
}

/**
* @return array<mixed>
*/
Expand Down

0 comments on commit d8d08ec

Please sign in to comment.