Compare commits

2 Commits

Author SHA1 Message Date
Vassyli 0a7f301536 Fix: Adjusted tests. 2021-03-01 20:53:00 +01:00
Vassyli fc8d7be2ef Fix: renamed two events from character-config to scene-config. 2021-03-01 20:53:00 +01:00
4 changed files with 4 additions and 4 deletions
@@ -56,7 +56,7 @@ class SceneConfigResetCommand extends SceneBaseCommand
]);
$newContext = $this->game->getEventManager()->publish(
event: "h/lotgd/core/cli/character-config-reset/{$sceneTemplate}",
event: "h/lotgd/core/cli/scene-config-reset/{$sceneTemplate}",
contextData: $context
);
if ($newContext->get("return") != Command::SUCCESS) {
@@ -60,7 +60,7 @@ class SceneConfigSetCommand extends SceneBaseCommand
"reason" => "Setting does not exist.",
]);
$newContext = $this->game->getEventManager()->publish(
event: "h/lotgd/core/cli/character-config-set/{$sceneTemplate}",
event: "h/lotgd/core/cli/scene-config-set/{$sceneTemplate}",
contextData: $context
);
if ($newContext->get("return") != Command::SUCCESS) {
@@ -41,7 +41,7 @@ class SceneConfigResetCommandTest extends CoreModelTestCase
$eventManager->expects($this->once())
->method('publish')
->with(
$this->equalTo("h/lotgd/core/cli/character-config-reset/{$path}"),
$this->equalTo("h/lotgd/core/cli/scene-config-reset/{$path}"),
$this->callback(function (EventContextData $eventContextData) use ($scene, $sceneTitle, $setting) {
$pass = 1;
@@ -41,7 +41,7 @@ class SceneConfigSetCommandTest extends CoreModelTestCase
$eventManager->expects($this->once())
->method('publish')
->with(
$this->equalTo("h/lotgd/core/cli/character-config-set/{$path}"),
$this->equalTo("h/lotgd/core/cli/scene-config-set/{$path}"),
$this->callback(function (EventContextData $eventContextData) use ($character, $displayName, $setting, $value) {
$pass = 1;