1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 08:32:56 +00:00

Add command testing utilities to TestCase, add tests for ConfigCommand

This commit is contained in:
Jordi Boggiano 2022-05-11 16:05:35 +02:00
parent ebfdae8883
commit fdab6657c7
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
35 changed files with 253 additions and 73 deletions

View file

@ -30,7 +30,7 @@ class FossilDriverTest extends TestCase
public function setUp(): void
{
$this->home = $this->getUniqueTmpDirectory();
$this->home = self::getUniqueTmpDirectory();
$this->config = new Config();
$this->config->merge(array(
'config' => array(

View file

@ -37,7 +37,7 @@ class GitBitbucketDriverTest extends TestCase
{
$this->io = $this->getMockBuilder('Composer\IO\IOInterface')->getMock();
$this->home = $this->getUniqueTmpDirectory();
$this->home = self::getUniqueTmpDirectory();
$this->config = new Config();
$this->config->merge(array(

View file

@ -28,7 +28,7 @@ class GitHubDriverTest extends TestCase
public function setUp(): void
{
$this->home = $this->getUniqueTmpDirectory();
$this->home = self::getUniqueTmpDirectory();
$this->config = new Config();
$this->config->merge(array(
'config' => array(

View file

@ -51,7 +51,7 @@ class GitLabDriverTest extends TestCase
public function setUp(): void
{
$this->home = $this->getUniqueTmpDirectory();
$this->home = self::getUniqueTmpDirectory();
$this->config = $this->getConfig([
'home' => $this->home,
'gitlab-domains' => array(

View file

@ -30,7 +30,7 @@ class HgDriverTest extends TestCase
public function setUp(): void
{
$this->io = $this->getMockBuilder('Composer\IO\IOInterface')->getMock();
$this->home = $this->getUniqueTmpDirectory();
$this->home = self::getUniqueTmpDirectory();
$this->config = new Config();
$this->config->merge(array(
'config' => array(

View file

@ -63,7 +63,7 @@ class PerforceDriverTest extends TestCase
protected function setUp(): void
{
$this->testPath = $this->getUniqueTmpDirectory();
$this->testPath = self::getUniqueTmpDirectory();
$this->config = $this->getTestConfig($this->testPath);
$this->repoConfig = array(
'url' => self::TEST_URL,

View file

@ -31,7 +31,7 @@ class SvnDriverTest extends TestCase
public function setUp(): void
{
$this->home = $this->getUniqueTmpDirectory();
$this->home = self::getUniqueTmpDirectory();
$this->config = new Config();
$this->config->merge(array(
'config' => array(