Skip to content

Commit

Permalink
Update references to git.govpress.com in tests
Browse files Browse the repository at this point in the history
This isn't necessary but it's helpful to us to avoid
seeing false positives when we search the GitHub org
for incorrect referencess.
  • Loading branch information
snim2 committed Oct 25, 2024
1 parent c2d6ad0 commit 15635ba
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 75 deletions.
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 15635ba

Please sign in to comment.