Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
naming [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jul 2, 2018
1 parent 4940bc6 commit e40ddbf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function splitDirectoriesToRepositories(array $splitConfig, string $rootD
foreach ($splitConfig as $localSubdirectory => $remoteRepository) {
$this->fileSystemGuard->ensureDirectoryExists($localSubdirectory);

$process = $this->processFactory->createSubsplitPublish(
$process = $this->processFactory->createSubsplit(
$theMostRecentTag,
$localSubdirectory,
$remoteRepository,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct(RepositoryGuard $repositoryGuard, string $rootDirect
$this->rootDirectory = $rootDirectory;
}

public function createSubsplitPublish(
public function createSubsplit(
string $theMostRecentTag,
string $directory,
string $remoteRepository,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,16 @@ protected function setUp(): void

public function test(): void
{
$splitProcess = $this->processFactory->createSubsplitPublish('', 'localDirectory', 'git@github.com:Symplify/Symplify.git', false);
$subsplitProcess = $this->processFactory->createSubsplit(
'',
'localDirectory',
'git@github.com:Symplify/Symplify.git',
false
);

$subsplitRealpath = realpath(__DIR__ . '/../../bash/subsplit.sh');
$commandLine = "'" . $subsplitRealpath . "' '--heads=master' '' 'localDirectory:git@github.com:Symplify/Symplify.git' ''";

$this->assertSame($commandLine, $splitProcess->getCommandLine());
$this->assertSame($commandLine, $subsplitProcess->getCommandLine());
}
}

0 comments on commit e40ddbf

Please sign in to comment.