Skip to content
Snippets Groups Projects
Commit f90196ef authored by Yash Rode's avatar Yash Rode Committed by Adam G-H
Browse files

Issue #3362589 by yash.rode, Wim Leers: Remove BypassedStagerServiceBase...

Issue #3362589 by yash.rode, Wim Leers: Remove BypassedStagerServiceBase reference as the class does not exist anymore
parent cebbc05f
No related branches found
No related tags found
2 merge requests!989Issue #3356804 by phenaproxima: Flag a warning during status check if the...,!886Issue #3362589: Remove BypassedStagerServiceBase reference as the class does not exist anymore.
...@@ -65,7 +65,7 @@ class GitExcluderTest extends PackageManagerKernelTestBase { ...@@ -65,7 +65,7 @@ class GitExcluderTest extends PackageManagerKernelTestBase {
$stage = $this->createStage(); $stage = $this->createStage();
$stage->create(); $stage->create();
/** @var \Drupal\package_manager_bypass\BypassedStagerServiceBase $beginner */ /** @var \Drupal\package_manager_bypass\LoggingBeginner $beginner */
$beginner = $this->container->get('package_manager.beginner'); $beginner = $this->container->get('package_manager.beginner');
$beginner_args = $beginner->getInvocationArguments(); $beginner_args = $beginner->getInvocationArguments();
$excluded_paths = [ $excluded_paths = [
...@@ -117,7 +117,7 @@ class GitExcluderTest extends PackageManagerKernelTestBase { ...@@ -117,7 +117,7 @@ class GitExcluderTest extends PackageManagerKernelTestBase {
file_put_contents("$path/.git/excluded.txt", 'Phoenix!'); file_put_contents("$path/.git/excluded.txt", 'Phoenix!');
$stage->apply(); $stage->apply();
/** @var \Drupal\package_manager_bypass\BypassedStagerServiceBase $committer */ /** @var \Drupal\package_manager_bypass\LoggingCommitter $committer */
$committer = $this->container->get('package_manager.committer'); $committer = $this->container->get('package_manager.committer');
$committer_args = $committer->getInvocationArguments(); $committer_args = $committer->getInvocationArguments();
$excluded_paths = [ $excluded_paths = [
......
...@@ -18,11 +18,11 @@ trait PackageManagerBypassTestTrait { ...@@ -18,11 +18,11 @@ trait PackageManagerBypassTestTrait {
* The expected number of times an update was staged. * The expected number of times an update was staged.
*/ */
protected function assertUpdateStagedTimes(int $attempted_times): void { protected function assertUpdateStagedTimes(int $attempted_times): void {
/** @var \Drupal\package_manager_bypass\BypassedStagerServiceBase $beginner */ /** @var \Drupal\package_manager_bypass\LoggingBeginner $beginner */
$beginner = $this->container->get('package_manager.beginner'); $beginner = $this->container->get('package_manager.beginner');
$this->assertCount($attempted_times, $beginner->getInvocationArguments()); $this->assertCount($attempted_times, $beginner->getInvocationArguments());
/** @var \Drupal\package_manager_bypass\BypassedStagerServiceBase $stager */ /** @var \Drupal\package_manager_bypass\NoOpStager $stager */
$stager = $this->container->get('package_manager.stager'); $stager = $this->container->get('package_manager.stager');
// If an update was attempted, then there will be at least two calls to the // If an update was attempted, then there will be at least two calls to the
// stager: one to change the runtime constraints in composer.json, and // stager: one to change the runtime constraints in composer.json, and
...@@ -31,7 +31,7 @@ trait PackageManagerBypassTestTrait { ...@@ -31,7 +31,7 @@ trait PackageManagerBypassTestTrait {
// additional call to change the dev constraints. // additional call to change the dev constraints.
$this->assertGreaterThanOrEqual($attempted_times * 2, count($stager->getInvocationArguments())); $this->assertGreaterThanOrEqual($attempted_times * 2, count($stager->getInvocationArguments()));
/** @var \Drupal\package_manager_bypass\BypassedStagerServiceBase $committer */ /** @var \Drupal\package_manager_bypass\LoggingCommitter $committer */
$committer = $this->container->get('package_manager.committer'); $committer = $this->container->get('package_manager.committer');
$this->assertEmpty($committer->getInvocationArguments()); $this->assertEmpty($committer->getInvocationArguments());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment