Skip to content

Commit

Permalink
chore: fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
luislard committed May 6, 2024
1 parent 6292b7f commit 6fc4bb2
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tests/unit/AppTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use Inpsyde\App\App;
use Inpsyde\App\CompositeContainer;
use Inpsyde\Modularity\Container\ReadOnlyContainer;
use Inpsyde\Modularity\Module\ServiceModule;
use Inpsyde\Modularity\Package;
use Inpsyde\WpContext;
Expand Down Expand Up @@ -184,7 +183,6 @@ public function testSharePackageToBootWhenPackageIsNotBooted(): void
'package' => $package,
] = $this->prepareSharePackageCommon();


// When we call sharePackageToBoot passing a NOT booted package
// Notice that the WP App container is not booted at this point neither
static::assertInstanceOf(App::class, $app->sharePackageToBoot($package));
Expand Down Expand Up @@ -230,7 +228,6 @@ public function testSharePackageToBootWhenPackageIsNotBooted(): void
static::assertInstanceOf(\ArrayObject::class, $app->resolve($containerServiceId));
}


public function testSharePackageWhenPackageIsBooted()
{
/**
Expand All @@ -257,7 +254,6 @@ public function testSharePackageWhenPackageIsBooted()
static::assertFalse($package->container()->has($containerServiceId));
}


/**
* Scenario
* Package is not booted
Expand All @@ -280,8 +276,6 @@ public function testSharePackageWhenPackageIsNotBooted(): void
'package' => $package,
] = $this->prepareSharePackageCommon();



// When we call sharePackageToBoot passing a NOT booted package
// Notice that the WP App container is not booted at this point neither
static::assertInstanceOf(App::class, $app->sharePackage($package));
Expand Down Expand Up @@ -318,7 +312,7 @@ public function testSharePackageWhenPackageIsNotBooted(): void
$this->appHandleModularityBoot->invoke(
$app,
$package,
true,
true
);

// package can't see the service from app container if the Wp App Container is not booted
Expand All @@ -336,5 +330,4 @@ public function testSharePackageWhenPackageIsNotBooted(): void
// Note: we can retrieve the service from the App Container because we used App::addEarlyModule
static::assertInstanceOf(\ArrayObject::class, $app->resolve($containerServiceId));
}

}

0 comments on commit 6fc4bb2

Please sign in to comment.