Skip to content

Commit

Permalink
Merge pull request #255 from dxw/chore/update-old-git-endpoints
Browse files Browse the repository at this point in the history
Chore/update old git endpoints
  • Loading branch information
snim2 authored Oct 28, 2024
2 parents 4d418c1 + 15635ba commit 5e21a0d
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 76 deletions.
2 changes: 1 addition & 1 deletion src/Modules/Helpers/WhippetHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function load_application_config()
$this->application_config = json_decode('
{
"wordpress": {
"repository": "git@git.govpress.com:wordpress/snapshot",
"repository": "git@github.com:dxw/wordpress-snapshot",
"revision": "master"
}
}
Expand Down
32 changes: 16 additions & 16 deletions tests/dependencies/installer_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function testInstallAll()

$my_theme = [
'name' => 'my-theme',
'src' => 'git@git.govpress.com:wordpress-themes/my-theme',
'src' => 'git@github.com:dxw-wordpress-themes/my-theme',
'revision' => '27ba906',
];

Expand All @@ -44,7 +44,7 @@ public function testInstallAll()
]);
$this->addFactoryCallStatic('\\Dxw\\Whippet\\Files\\WhippetLock', 'fromFile', $dir.'/whippet.lock', \Result\Result::ok($whippetLock));

$gitMyTheme = $this->getGit(false, 'git@git.govpress.com:wordpress-themes/my-theme', '27ba906');
$gitMyTheme = $this->getGit(false, 'git@github.com:dxw-wordpress-themes/my-theme', '27ba906');
$this->addFactoryNewInstance('\\Dxw\\Whippet\\Git\\Git', $dir.'/wp-content/themes/my-theme', $gitMyTheme);
$gitMyPlugin = $this->getGit(false, 'git@github.com:dxw-wordpress-plugins/my-plugin', '123456');
$this->addFactoryNewInstance('\\Dxw\\Whippet\\Git\\Git', $dir.'/wp-content/plugins/my-plugin', $gitMyPlugin);
Expand Down Expand Up @@ -169,7 +169,7 @@ public function testInstallArchiveRepo()

$my_theme = [
'name' => 'my-theme',
'src' => 'git@git.govpress.com:wordpress-themes/my-theme',
'src' => 'git@github.com:dxw-wordpress-themes/my-theme',
'revision' => '27ba906',
];

Expand All @@ -181,7 +181,7 @@ public function testInstallArchiveRepo()
]);
$this->addFactoryCallStatic('\\Dxw\\Whippet\\Files\\WhippetLock', 'fromFile', $dir.'/whippet.lock', \Result\Result::ok($whippetLock));

$gitMyTheme = $this->getGit(false, 'git@git.govpress.com:wordpress-themes/my-theme', '27ba906', true);
$gitMyTheme = $this->getGit(false, 'git@github.com:dxw-wordpress-themes/my-theme', '27ba906', true);
$this->addFactoryNewInstance('\\Dxw\\Whippet\\Git\\Git', $dir.'/wp-content/themes/my-theme', $gitMyTheme);

$inspection_check_results = function ($type, $dep) {
Expand Down Expand Up @@ -233,7 +233,7 @@ public function testInstallAllThemeAlreadyCloned()
'themes' => [
[
'name' => 'my-theme',
'src' => 'git@git.govpress.com:wordpress-themes/my-theme',
'src' => 'git@github.com:dxw-wordpress-themes/my-theme',
'revision' => '27ba906',
],
],
Expand Down Expand Up @@ -333,15 +333,15 @@ public function testInstallAllCloneFails()
'themes' => [
[
'name' => 'my-theme',
'src' => 'git@git.govpress.com:wordpress-themes/my-theme',
'src' => 'git@github.com:dxw-wordpress-themes/my-theme',
'revision' => '27ba906',
],
],
'plugins' => [],
]);
$this->addFactoryCallStatic('\\Dxw\\Whippet\\Files\\WhippetLock', 'fromFile', $dir.'/whippet.lock', \Result\Result::ok($whippetLock));

$gitMyTheme = $this->getGit(false, ['with' => 'git@git.govpress.com:wordpress-themes/my-theme', 'return' => false], null);
$gitMyTheme = $this->getGit(false, ['with' => 'git@github.com:dxw-wordpress-themes/my-theme', 'return' => false], null);
$this->addFactoryNewInstance('\\Dxw\\Whippet\\Git\\Git', $dir.'/wp-content/themes/my-theme', $gitMyTheme);

$dependencies = new \Dxw\Whippet\Dependencies\Installer(
Expand Down Expand Up @@ -369,15 +369,15 @@ public function testInstallAllCheckoutFails()
'themes' => [
[
'name' => 'my-theme',
'src' => 'git@git.govpress.com:wordpress-themes/my-theme',
'src' => 'git@github.com:dxw-wordpress-themes/my-theme',
'revision' => '27ba906',
],
],
'plugins' => [],
]);
$this->addFactoryCallStatic('\\Dxw\\Whippet\\Files\\WhippetLock', 'fromFile', $dir.'/whippet.lock', \Result\Result::ok($whippetLock));

$gitMyTheme = $this->getGit(false, 'git@git.govpress.com:wordpress-themes/my-theme', ['with' => '27ba906', 'return' => false]);
$gitMyTheme = $this->getGit(false, 'git@github.com:dxw-wordpress-themes/my-theme', ['with' => '27ba906', 'return' => false]);
$this->addFactoryNewInstance('\\Dxw\\Whippet\\Git\\Git', $dir.'/wp-content/themes/my-theme', $gitMyTheme);

$dependencies = new \Dxw\Whippet\Dependencies\Installer(
Expand Down Expand Up @@ -431,7 +431,7 @@ public function testInstallSingle()
'themes' => [
[
'name' => 'my-theme',
'src' => 'git@git.govpress.com:wordpress-themes/my-theme',
'src' => 'git@github.com:dxw-wordpress-themes/my-theme',
'revision' => '27ba906',
],
],
Expand Down Expand Up @@ -492,7 +492,7 @@ public function testInstallSingleAlreadyCloned()
'themes' => [
[
'name' => 'my-theme',
'src' => 'git@git.govpress.com:wordpress-themes/my-theme',
'src' => 'git@github.com:dxw-wordpress-themes/my-theme',
'revision' => '27ba906',
],
],
Expand Down Expand Up @@ -537,7 +537,7 @@ public function testInstallSingleAlreadyClonedAndArchived()
'themes' => [
[
'name' => 'my-theme',
'src' => 'git@git.govpress.com:wordpress-themes/my-theme',
'src' => 'git@github.com:dxw-wordpress-themes/my-theme',
'revision' => '27ba906',
],
],
Expand Down Expand Up @@ -598,15 +598,15 @@ public function testInstallSingleCloneFails()
'themes' => [
[
'name' => 'my-theme',
'src' => 'git@git.govpress.com:wordpress-themes/my-theme',
'src' => 'git@github.com:dxw-wordpress-themes/my-theme',
'revision' => '27ba906',
],
],
'plugins' => [],
]);
$this->addFactoryCallStatic('\\Dxw\\Whippet\\Files\\WhippetLock', 'fromFile', $dir.'/whippet.lock', \Result\Result::ok($whippetLock));

$gitMyTheme = $this->getGit(false, ['with' => 'git@git.govpress.com:wordpress-themes/my-theme', 'return' => false], null);
$gitMyTheme = $this->getGit(false, ['with' => 'git@github.com:dxw-wordpress-themes/my-theme', 'return' => false], null);
$this->addFactoryNewInstance('\\Dxw\\Whippet\\Git\\Git', $dir.'/wp-content/themes/my-theme', $gitMyTheme);

$dependencies = new \Dxw\Whippet\Dependencies\Installer(
Expand Down Expand Up @@ -634,15 +634,15 @@ public function testInstallSingleCheckoutFails()
'themes' => [
[
'name' => 'my-theme',
'src' => 'git@git.govpress.com:wordpress-themes/my-theme',
'src' => 'git@github.com:dxw-wordpress-themes/my-theme',
'revision' => '27ba906',
],
],
'plugins' => [],
]);
$this->addFactoryCallStatic('\\Dxw\\Whippet\\Files\\WhippetLock', 'fromFile', $dir.'/whippet.lock', \Result\Result::ok($whippetLock));

$gitMyTheme = $this->getGit(false, 'git@git.govpress.com:wordpress-themes/my-theme', ['with' => '27ba906', 'return' => false]);
$gitMyTheme = $this->getGit(false, 'git@github.com:dxw-wordpress-themes/my-theme', ['with' => '27ba906', 'return' => false]);
$this->addFactoryNewInstance('\\Dxw\\Whippet\\Git\\Git', $dir.'/wp-content/themes/my-theme', $gitMyTheme);

$dependencies = new \Dxw\Whippet\Dependencies\Installer(
Expand Down
Loading

0 comments on commit 5e21a0d

Please sign in to comment.