Skip to content

Commit

Permalink
Fix name package. (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw authored Jan 21, 2024
1 parent ce6c943 commit 444698d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 11 deletions.
2 changes: 0 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
Change Log
==========

## 0.1.1 Under development

## 0.1.0 January 21, 2024

- Initial release.
2 changes: 1 addition & 1 deletion src/Foxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function initOnInstall(PackageEvent $event): void
{
$operation = $event->getOperation();

if ($operation instanceof InstallOperation && 'foxy/foxy' === $operation->getPackage()->getName()) {
if ($operation instanceof InstallOperation && 'php-forge/foxy' === $operation->getPackage()->getName()) {
$this->init();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Util/AssetUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public static function hasPluginDependency(array $requires): bool
$assets = false;

foreach ($requires as $require) {
if ('foxy/foxy' === $require->getTarget()) {
if ('php-forge/foxy' === $require->getTarget()) {
$assets = true;

break;
Expand Down
2 changes: 1 addition & 1 deletion tests/FoxyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function testActivateOnInstall(): void
{
$package = $this->createMock(Package::class);

$package->expects($this->once())->method('getName')->willReturn('foxy/foxy');
$package->expects($this->once())->method('getName')->willReturn('php-forge/foxy');

$operation = $this->createMock(InstallOperation::class);

Expand Down
2 changes: 1 addition & 1 deletion tests/Solver/SolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public function testSolve(int $resRunManager): void
$requirePackage
->expects($this->any())
->method('getRequires')
->willReturn([new Link('root/package', 'foxy/foxy', new Constraint('=', '1.0.0'))]);
->willReturn([new Link('root/package', 'php-forge/foxy', new Constraint('=', '1.0.0'))]);
$requirePackage->expects($this->any())->method('getDevRequires')->willReturn([]);

$this->addInstalledPackages([$requirePackage]);
Expand Down
10 changes: 5 additions & 5 deletions tests/Util/AssetUtilTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,23 +83,23 @@ public static function getRequiresData(): array
{
return [
[
[new Link('root/package', 'foxy/foxy', new Constraint('=', '1.0.0'))],
[new Link('root/package', 'php-forge/foxy', new Constraint('=', '1.0.0'))],
[],
false,
],
[
[],
[new Link('root/package', 'foxy/foxy', new Constraint('=', '1.0.0'))],
[new Link('root/package', 'php-forge/foxy', new Constraint('=', '1.0.0'))],
false,
],
[
[new Link('root/package', 'foxy/foxy', new Constraint('=', '1.0.0'))],
[new Link('root/package', 'php-forge/foxy', new Constraint('=', '1.0.0'))],
[],
true,
],
[
[],
[new Link('root/package', 'foxy/foxy', new Constraint('=', '1.0.0'))],
[new Link('root/package', 'php-forge/foxy', new Constraint('=', '1.0.0'))],
true,
],
];
Expand Down Expand Up @@ -204,7 +204,7 @@ public function testHasPluginDependency(): void
AssetUtil::hasPluginDependency(
[
new Link('root/package', 'foo/bar', new Constraint('=', '1.0.0')),
new Link('root/package', 'foxy/foxy', new Constraint('=', '1.0.0')),
new Link('root/package', 'php-forge/foxy', new Constraint('=', '1.0.0')),
new Link('root/package', 'bar/foo', new Constraint('=', '1.0.0')),
],
)
Expand Down

0 comments on commit 444698d

Please sign in to comment.