Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/update old git endpoints #255

Merged
merged 2 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading