Skip to content

Commit

Permalink
Merge pull request #7 from M-arcus/patch-1
Browse files Browse the repository at this point in the history
Add theme:refresh and scheduled-task:register to run execution
  • Loading branch information
shyim authored Aug 2, 2024
2 parents 596674e + 3497fb5 commit f4d0748
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/Services/UpgradeManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public function run(RunConfiguration $configuration, OutputInterface $output): v
}

$this->processHelper->console(['plugin:refresh']);
$this->processHelper->console(['theme:refresh']);
$this->processHelper->console(['scheduled-task:register']);

$this->pluginHelper->installPlugins($configuration->skipAssetInstall);
$this->pluginHelper->updatePlugins($configuration->skipAssetInstall);
Expand Down
4 changes: 2 additions & 2 deletions tests/Services/UpgradeManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function testRunUpdatesVersionNoAssetCompile(): void

$manager->run(new RunConfiguration(true, true), $this->createMock(OutputInterface::class));

static::assertCount(2, $consoleCommands);
static::assertCount(4, $consoleCommands);
static::assertSame(['system:update:finish', '--skip-asset-build'], $consoleCommands[0]);
}

Expand Down Expand Up @@ -150,7 +150,7 @@ public function testRunWithDifferentSalesChannelUrl(): void

$manager->run(new RunConfiguration(), $this->createMock(OutputInterface::class));

static::assertCount(3, $consoleCommands);
static::assertCount(5, $consoleCommands);
static::assertSame(['sales-channel:create:storefront', '--name=Storefront', '--url=http://localhost'], $consoleCommands[0]);
}
}

0 comments on commit f4d0748

Please sign in to comment.