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:
parent
ebfdae8883
commit
fdab6657c7
35 changed files with 253 additions and 73 deletions
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue